Phecda
... ... @@ -11,8 +11,16 @@
import React from 'react';
import { DarkModeProvider } from 'react-native-dark-mode';
import { enableScreens } from 'react-native-screens';
import { enableES5 } from 'immer';
import AppNavigationContainer from './src/screen/AppNavigationContainer';
import { I18NProvider } from './src/i18n';
import { Platform } from 'react-native';
declare var global: { HermesInternal: null | {} };
if (Platform.OS === 'android' && global.HermesInternal) {
// https://immerjs.github.io/immer/docs/installation#immer-on-older-javascript-environments
enableES5();
}
if (__DEV__) {
const whyDidYouRender = require('@welldone-software/why-did-you-render');
... ...
... ... @@ -21,6 +21,7 @@
"@react-navigation/material-top-tabs": "^5.1.7",
"@react-navigation/native": "^5.1.4",
"@react-navigation/stack": "^5.2.9",
"immer": "^6.0.3",
"react": "16.11.0",
"react-native": "0.62.1",
"react-native-dark-mode": "^0.2.2",
... ...
... ... @@ -4305,7 +4305,7 @@ image-size@^0.6.0:
resolved "https://registry.npm.taobao.org/image-size/download/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2"
integrity sha1-5+XGW7U0vXzc7dbLUWYnKoX3X7I=
immer@^6.0.1:
immer@^6.0.1, immer@^6.0.3:
version "6.0.3"
resolved "https://registry.npm.taobao.org/immer/download/immer-6.0.3.tgz?cache=0&sync_timestamp=1585688720113&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimmer%2Fdownload%2Fimmer-6.0.3.tgz#94d5051cd724668160a900d66d85ec02816f29bd"
integrity sha1-lNUFHNckZoFgqQDWbYXsAoFvKb0=
... ...