Skip to content

Instantly share code, notes, and snippets.

View flopshot's full-sized avatar

Sean Najera flopshot

View GitHub Profile
@flopshot
flopshot / WhiteLabelConfig.tsx
Last active September 14, 2019 16:17
The configuration file of our WhiteLabel logic
// WhiteLabelConfig.tsx
import { NativeModules } from 'react-native';
export default class WhiteLabelConfig {
public static readonly APP_NAME: string = 'WhiteLabelDemo';
public static readonly PRIMARY_COLOR: string = '#fdf6e3';
public static readonly PRIMARY_TEXT_COLOR: string = '#657b83';
public static readonly GREETING_TEXT: string = 'Welcome';
}
@flopshot
flopshot / AppTheme.tsx
Created September 8, 2019 15:41
App Component Style
// AppTheme.tsx
import { StyleSheet } from 'react-native';
import whiteLabelConfig from './whitelabel/WhiteLabelConfig';
export default StyleSheet.create({
screen: {
flex: 1,
justifyContent: 'center',
backgroundColor: whiteLabelConfig.PRIMARY_COLOR
@flopshot
flopshot / App.tsx
Last active September 8, 2019 16:00
App Component of WhiteLabelDemo
// App.tsx
import React from 'react';
import { SafeAreaView, Text, View } from 'react-native';
import appStyle from './AppTheme'
import whiteLabelConfig from './whitelabel/WhiteLabelConfig';
const app = () => (