This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// App.tsx | |
import React from 'react'; | |
import { SafeAreaView, Text, View } from 'react-native'; | |
import appStyle from './AppTheme' | |
import whiteLabelConfig from './whitelabel/WhiteLabelConfig'; | |
const app = () => ( |
NewerOlder