Created
January 15, 2018 10:08
-
-
Save adamTrz/0d620d1a1905a4fea00c811e14738662 to your computer and use it in GitHub Desktop.
react-native-ios-kit theme customisation
This file contains hidden or 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
| import * as React from 'react'; | |
| import { AppRegistry } from 'react-native'; | |
| import { DefaultTheme, ThemeProvider } from 'react-native-ios-kit'; | |
| import color from 'color'; | |
| import App from './src/App'; | |
| const theme = { | |
| ...DefaultTheme, | |
| primaryColor: 'tomato', | |
| primaryLightColor: color('tomato').lighten(0.2).rgb().string(), | |
| disabledColor: 'yellow', | |
| }; | |
| function Main() { | |
| return ( | |
| <ThemeProvider theme={theme}> | |
| <App /> | |
| </ThemeProvider> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment