Skip to content

Instantly share code, notes, and snippets.

@adamTrz
Created January 15, 2018 10:08
Show Gist options
  • Select an option

  • Save adamTrz/0d620d1a1905a4fea00c811e14738662 to your computer and use it in GitHub Desktop.

Select an option

Save adamTrz/0d620d1a1905a4fea00c811e14738662 to your computer and use it in GitHub Desktop.
react-native-ios-kit theme customisation
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