-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
21 lines (17 loc) · 756 Bytes
/
index.ts
File metadata and controls
21 lines (17 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { registerRootComponent } from 'expo';
import { enableScreens } from 'react-native-screens';
import { LogBox, YellowBox } from 'react-native';
// Ignorar avisos específicos
LogBox.ignoreLogs([
'Unsupported top level event type "topInsetsChange" dispatched',
'Non-serializable values were found in the navigation state',
'Sending `topInsetsChange` with',
'Native module cannot be null',
'Setting a timer for a long period of time',
]);
// Inicializar o react-native-screens
enableScreens(true);
import App from './App';
// registerRootComponent chama AppRegistry.registerComponent('main', () => App);
// Também garante que a interface do usuário seja carregada quando o app é executado em um dispositivo
registerRootComponent(App);