initial configuration with ui library and navigation

This commit is contained in:
talksik
2021-06-01 19:12:59 +04:00
parent 59c699455e
commit b498cbd941
8 changed files with 1337 additions and 24 deletions
+21
View File
@@ -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',
});