How to fix drawer application with latest react-native - react-native

I am getting this error in starting template of drawer application
Animated: useNativeDriver is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add RCTAnimation module to this app, or remove useNativeDriver. Make sure to run pod install first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
{
"name": "awesomeproject-type",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"#expo/vector-icons": "^13.0.0",
"#react-navigation/bottom-tabs": "^6.0.5",
"#react-navigation/drawer": "^6.4.1",
"#react-navigation/native": "^6.0.2",
"#react-navigation/native-stack": "^6.1.0",
"expo": "~45.0.0",
"expo-asset": "~8.5.0",
"expo-constants": "~13.1.1",
"expo-font": "~10.1.0",
"expo-linking": "~3.1.0",
"expo-splash-screen": "~0.15.1",
"expo-status-bar": "~1.3.0",
"expo-system-ui": "~1.2.0",
"expo-web-browser": "~10.2.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-gesture-handler": "^2.4.2",
"react-native-reanimated": "^2.8.0",
"react-native-safe-area-context": "4.2.4",
"react-native-screens": "~3.11.1",
"react-native-web": "0.17.7",
"react-native-webview": "^11.18.2"
},
"devDependencies": {
"#babel/core": "^7.12.9",
"#types/react": "~17.0.21",
"#types/react-native": "~0.66.13",
"jest": "^26.6.3",
"jest-expo": "~45.0.0",
"react-test-renderer": "17.0.2",
"typescript": "~4.3.5"
},
"private": true
}

Related

Blank screen after splash in react native eas build, how to debug?

My app runs well in expo go but when I create a apk with eas build it shows a blank screen after splash screen. I created apk with expo 45 build, it was fine.
{
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"#expo/samples": "~36.0.0",
"#expo/vector-icons": "^13.0.0",
"#react-native-community/masked-view": "^0.1.11",
"expo": "^47.0.8",
"expo-app-loading": "^2.1.1",
"expo-asset": "^8.7.0",
"expo-constants": "~14.0.2",
"expo-dev-client": "~2.0.1",
"expo-file-system": "~15.1.1",
"expo-font": "~11.0.1",
"expo-intent-launcher": "^10.3.1",
"expo-localization": "~14.0.0",
"expo-sqlite": "~11.0.0",
"expo-updates": "^0.15.6",
"expo-web-browser": "~12.0.0",
"i18next": "^22.4.5",
"js-base64": "3.7.3",
"native-base": "^3.4.25",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-i18next": "^12.1.1",
"react-native": "0.70.5",
"react-native-device-info": "^10.3.0",
"react-native-elements": "^3.4.2",
"react-native-fontawesome": "^7.0.0",
"react-native-gesture-handler": "~2.8.0",
"react-native-permissions": "^3.6.1",
"react-native-reanimated": "~2.12.0",
"react-native-render-html": "^6.3.4",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.2",
"react-native-svg": "^13.4.0",
"react-native-vector-icons": "^9.2.0",
"react-native-view-pdf": "^0.14.0",
"react-native-web": "0.18.10",
"react-native-webview": "11.23.1",
"react-native-youtube-iframe": "^2.2.2",
"react-navigation": "^4.0.5",
"react-navigation-drawer": "^2.2.1",
"react-navigation-stack": "^2.1.0",
"react-navigation-tabs": "^2.5.3",
"watchman": "^1.0.0"
},
"devDependencies": {
"#babel/core": "^7.20.5",
"#types/react": "~18.0.26",
"babel-preset-expo": "~9.2.2",
"jest-expo": "^47.0.1",
"typescript": "~4.9.4"
},
"private": true
}

Unable to resolve modules #unimodules/core for expo46 and reactnative 0.69.6?

I have an error
"Unable to resolve module #unimodules/core from D:\react-native-tutorial\node_modules\expo-gl\build\GLView.js: #unimodules/core could not be found within the project or node_modules"
I searched other questions and it seems that this issue should have been resolved after expo version 43. I am on expo 46 so im not sure how to resolve this problem. my package.json looks like :
{
"name": "react-native-tutorial",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"#react-native-community/masked-view": "^0.1.11",
"#react-navigation/native": "^6.0.13",
"#react-navigation/stack": "^6.3.2",
"#tensorflow/tfjs": "^4.0.0",
"#tensorflow/tfjs-react-native": "^0.8.0",
"base-64": "^1.0.0",
"expo": "~46.0.13",
"expo-asset": "^8.6.1",
"expo-camera": "~12.3.0",
"expo-image-picker": "~13.3.1",
"expo-status-bar": "~1.4.0",
"firebase": "^9.6.11",
"react": "18.0.0",
"react-native": "0.69.6",
"react-native-gesture-handler": "~2.5.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-reanimated": "~2.9.1",
"react-native-safe-area-context": "4.3.1",
"react-native-screens": "~3.15.0"
},
"devDependencies": {
"#babel/core": "^7.12.9"
},
"private": true
}

Expo standalone apk stucks in spash screen

I have build the standalone apk using the command "eas build -p android --profile preview", It is working fine on development. But, if we run the apk in real device ny installing the apk, the splash screen alone is rendering for a period of long time.. Any ideas ?
package.json
{
"name": "My_Remainder",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"#expo/vector-icons": "^12.0.5",
"#react-native-async-storage/async-storage": "~1.15.0",
"#react-native-masked-view/masked-view": "0.2.6",
"#react-navigation/bottom-tabs": "^6.2.0",
"#react-navigation/drawer": "^6.4.1",
"#react-navigation/native": "^6.0.7",
"#react-navigation/stack": "^6.1.1",
"#sentry/react-native": "^3.4.1",
"expo": "~44.0.0",
"expo-application": "~4.0.1",
"expo-auth-session": "^3.5.0",
"expo-constants": "~13.0.1",
"expo-device": "~4.1.0",
"expo-font": "~10.0.4",
"expo-google-sign-in": "~10.1.0",
"expo-haptics": "~11.1.0",
"expo-linear-gradient": "~11.0.2",
"expo-linking": "~3.0.0",
"expo-random": "~12.1.1",
"expo-sharing": "~10.1.0",
"expo-status-bar": "~1.2.0",
"expo-updates": "~0.11.6",
"expo-web-browser": "~10.1.0",
"moment": "^2.29.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-calendar-picker": "^7.1.2",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~2.1.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-modal": "^13.0.1",
"react-native-reanimated": "~2.3.1",
"react-native-safe-area-context": "^3.4.1",
"react-native-svg": "^12.3.0",
"react-native-web": "0.17.1",
"react-redux": "^7.2.8",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1",
"sentry-expo": "^4.0.0",
"expo-splash-screen": "~0.14.1"
},
"devDependencies": {
"#babel/core": "^7.12.9"
},
"private": true
}

How register two views with the same name RNCSafeAreaProvider on android

strong text
Please I need your help with this error which giving me on android emulator. I have spent plenty time to fix it and run my app but unfortunately I couldn't.
strong text
Here is screenshots of my Package json file
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"#react-native-community/masked-view": "^0.1.11",
"#react-navigation/drawer": "^6.1.8",
"#react-navigation/native": "^6.0.6",
"#react-navigation/stack": "^6.0.11",
"expo": "~42.0.1",
"expo-linear-gradient": "^9.2.0",
"expo-status-bar": "~1.0.4",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz",
"react-native-gesture-handler": "^1.10.3",
"react-native-linear-gradient": "^2.5.6",
"react-native-reanimated": "^2.2.3",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "^3.8.0",
"react-native-web": "~0.13.12",
"react-redux": "^7.2.5",
"redux": "^4.1.1",
"redux-thunk": "^2.3.0"
},
"devDependencies": {
"#babel/core": "^7.9.0"
},
"private": true
}

Problem after ejecting application using expo

After having launched the command npm run eject, I follow those steps:
Bare: I'd like a bare React Native project.
I set the name of the app and the xcode project
The command return this message Ejected successfully!
After that, into the ios generated folder I run the command pod install and the result is Pod installation complete!
After performing this procedure I try to run the application using a ios simulator, but I have this error:
The Expo SDK requires Expo to run. It appears the native Expo modules are unavailable and this code is not running on Expo. Visit https://docs.expo.io to learn more about developing an Expo project.
Note that before executing the npm run eject command the app worked correctly.
This is the package.json before the eject:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"#apollo/react-hooks": "^3.0.1",
"apollo-boost": "^0.4.4",
"apollo-cache-inmemory": "^1.6.3",
"apollo-client": "^2.6.4",
"apollo-link-http": "^1.5.15",
"expo": "^34.0.1",
"expo-font": "^6.0.1",
"graphql-tag": "^2.10.1",
"metro-react-native-babel-preset": "^0.56.0",
"prop-types": "^15.7.2",
"react": "16.8.3",
"react-apollo": "^3.0.1",
"react-dom": "^16.8.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
"react-native-camera": "^3.3.2",
"react-native-camera-kit": "^8.0.1",
"react-native-circle-checkbox": "^0.1.6",
"react-native-elements": "^1.1.0",
"react-native-gesture-handler": "^1.3.0",
"react-native-image-picker": "^1.1.0",
"react-native-modal-datetime-picker": "^7.5.0",
"react-native-signature-pad": "^0.1.0",
"react-native-vector-icons": "^6.6.0",
"react-native-web": "^0.11.4",
"react-native-webview": "^5.12.1",
"react-navigation": "^3.12.1",
"tcomb-form-native": "^0.6.20"
},
"devDependencies": {
"babel-preset-expo": "^6.0.0"
},
"private": true
}
After eject the package.json has become:
{
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web"
},
"dependencies": {
"expo": "^34.0.1",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "0.59.10",
"react-native-gesture-handler": "^1.3.0",
"react-native-reanimated": "~1.1.0",
"react-native-screens": "1.0.0-alpha.22",
"react-native-unimodules": "~0.5.2",
"react-native-web": "^0.11.4",
"#apollo/react-hooks": "^3.0.1",
"apollo-boost": "^0.4.4",
"apollo-cache-inmemory": "^1.6.3",
"apollo-client": "^2.6.4",
"apollo-link-http": "^1.5.15",
"expo-font": "^6.0.1",
"graphql-tag": "^2.10.1",
"metro-react-native-babel-preset": "^0.56.0",
"prop-types": "^15.7.2",
"react-apollo": "^3.0.1",
"react-native-camera": "^3.3.2",
"react-native-camera-kit": "^8.0.1",
"react-native-circle-checkbox": "^0.1.6",
"react-native-elements": "^1.1.0",
"react-native-image-picker": "^1.1.0",
"react-native-modal-datetime-picker": "^7.5.0",
"react-native-signature-pad": "^0.1.0",
"react-native-vector-icons": "^6.6.0",
"react-native-webview": "^5.12.1",
"react-navigation": "^3.12.1",
"tcomb-form-native": "^0.6.20"
},
"devDependencies": {
"babel-preset-expo": "^6.0.0"
},
"private": true
}
The problem you're having is that you have an AppLoading from "expo" package in the App.js that doesn't have support without que ExpoSDK. You have to erase that and put the fonts in the componentDidMount()