initial configuration with ui library and navigation
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { ThemeManager } from 'react-native-ui-lib';
|
||||
|
||||
// with plain object
|
||||
ThemeManager.setComponentTheme('Card', {
|
||||
borderRadius: 8,
|
||||
});
|
||||
|
||||
// with a dynamic function
|
||||
ThemeManager.setComponentTheme('Button', (props, context) => {
|
||||
// 'square' is not an original Button prop, but a custom prop that can
|
||||
// be used to create different variations of buttons in your app
|
||||
if (props.square) {
|
||||
return {
|
||||
borderRadius: 0,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
ThemeManager.setComponentTheme('View', {
|
||||
backgroundColor: '#e9f6f7',
|
||||
});
|
||||
Reference in New Issue
Block a user