Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import 'node-libs-react-native/globals';
import { Platform, StyleSheet } from 'react-native';
import * as Font from 'expo-font';
// Configure expo-font to load .ttf files
// See: https://github.com/expo/expo/tree/master/packages/expo-font
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
// Polyfill ECMAScript Internationalization API on Android
// See: https://github.com/facebook/react-native/issues/19410
if (Platform.OS === 'android') {
require('intl');
require('intl/locale-data/jsonp/en-US');
}
import App from '../src/view/main-mobile';
module.exports = App;
import 'node-libs-react-native/globals';
// Polyfill ECMAScript Internationalization API on Android
// See: https://github.com/facebook/react-native/issues/19410
import 'intl';
import 'intl/locale-data/jsonp/en-US';
import { StyleSheet } from 'react-native';
import * as Font from 'expo-font';
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
import App from '../src/view/main-mobile';
module.exports = App;
componentWillMount() {
if (StyleSheet.setStyleAttributePreprocessor) {
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
}
const { exp } = this.props;
if (exp.notification) {
Notifications._setInitialNotification(exp.notification);
}
}
componentWillMount() {
if (StyleSheet.setStyleAttributePreprocessor) {
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
}
const { exp } = this.props;
if (exp.notification) {
Notifications._setInitialNotification(exp.notification);
}
}
render() {
componentWillMount() {
if (StyleSheet.setStyleAttributePreprocessor) {
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
}
const { exp } = this.props;
if (exp.notification) {
Notifications._setInitialNotification(exp.notification);
}
}
render() {