/** * @format */ import { AppRegistry, Text, TextInput } from 'react-native'; import App from './App'; import { name as appName } from './app.json'; 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);