Closed VT-nkumar closed 2 years ago
If instead of const modalConfig = { ErrorModal }, if I do const modalConfig = { } then there is no error. Is there anything missing in documentation or is there anything I missed it
Package.json
{
"name": "my-app",
"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": "~45.0.0",
"expo-status-bar": "~1.3.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-gesture-handler": "~2.2.1",
"react-native-modalfy": "^3.3.1",
"react-native-web": "0.17.7",
"react-navigation": "^4.4.4"
},
"devDependencies": {
"@babel/core": "^7.12.9"
},
"private": true
}
Hi @VT-nkumar! By the looks of it, the way you export/import the ErrorModal
component seems to be the issue. I've updated the documentation to be clearer as well. Does it work after updating the import as such:
import ErrorModal from './components/modals/ErrorModal'
Hi @VT-nkumar! By the looks of it, the way you export/import the
ErrorModal
component seems to be the issue. I've updated the documentation to be clearer as well. Does it work after updating the import as such:import ErrorModal from './components/modals/ErrorModal'
Yes, now it is working without any error. Thanks for help and updating documentation
Created a bare expo project and try to implement the way documentation. I am getting error.
App.js
Modal.js
Error in Console