/** * @format */ // Must be the first import: it installs `crypto.getRandomValues`, which `uuid` // binds at module load. Anything importing `uuid` before this — the device id // and the MPIN nonce both do — would otherwise throw at startup. import 'react-native-get-random-values'; import { AppRegistry, Text, TextInput } from 'react-native'; import notifee from '@notifee/react-native'; import App from './App'; import { name as appName } from './app.json'; // Required by Notifee: handles notification interactions that happen while the // app is in the background or quit. Tapping a notification opens the app via // the default press action, so no extra work is needed here. notifee.onBackgroundEvent(async () => { // No-op: the default press action launches the app. }); const customTextProps = { style: { fontFamily: 'Nunito-Regular', } }; if (Text.defaultProps) { Text.defaultProps.style = { ...Text.defaultProps.style, ...customTextProps.style }; } else { Text.defaultProps = customTextProps; } if (TextInput.defaultProps) { TextInput.defaultProps.style = { ...TextInput.defaultProps.style, ...customTextProps.style }; } else { TextInput.defaultProps = customTextProps; } AppRegistry.registerComponent(appName, () => App);