You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
835 B
37 lines
835 B
6 months ago
|
/**
|
||
|
* @format
|
||
|
*/
|
||
|
|
||
|
import { AppRegistry } from 'react-native';
|
||
|
import App from './src/App';
|
||
|
import { name as appName } from './app.json';
|
||
|
import { LogBox } from 'react-native';
|
||
|
import { MD3LightTheme, PaperProvider, useTheme } from 'react-native-paper';
|
||
|
|
||
|
LogBox.ignoreLogs(['Warning: Failed prop type: Invalid prop `role`']); // Ignore log notification by message
|
||
|
LogBox.ignoreAllLogs();
|
||
|
|
||
|
const theme = {
|
||
|
...MD3LightTheme,
|
||
|
roundness: 2,
|
||
|
myOwnProperty: true,
|
||
|
colors: {
|
||
|
...MD3LightTheme.colors,
|
||
|
primary: '#303F9F',
|
||
|
secondary: '#5E5C71',
|
||
|
tertiary: '#EF6262',
|
||
|
danger: '#EF6262',
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default function Main() {
|
||
|
return (
|
||
|
<PaperProvider theme={theme}>
|
||
|
<App />
|
||
|
</PaperProvider>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
AppRegistry.registerComponent(appName, () => App);
|