I might love to put in Notifee for my Expo challenge since I would want native and distant push notifications to work together with customers in my app (iOS/Android).
I observe the instruction on the web site and I can see Notifee as put in in my bundle.json file
{
"title": "etmhomecrossexpo",
"model": "1.0.0",
"scripts": {
"begin": "expo begin --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"net": "expo begin --web"
},
"dependencies": {
"@notifee/react-native": "^7.8.2",
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-navigation/native": "^6.1.14",
"@react-navigation/native-stack": "^6.9.22",
"@sorts/react": "~18.2.45",
"expo": "~50.0.11",
"expo-application": "~5.8.3",
"expo-build-properties": "~0.11.1",
"expo-dev-client": "~3.3.9",
"expo-device": "~5.9.4",
"expo-screen-orientation": "~6.4.1",
"expo-status-bar": "~1.11.1",
"highcharts": "^11.4.0",
"i18next": "^23.10.1",
"moment-timezone": "^0.5.45",
"react": "18.2.0",
"react-i18next": "^14.1.0",
"react-native": "0.73.6",
"react-native-base64": "^0.2.1",
"react-native-change-icon": "^5.0.0",
"react-native-device-info": "^10.13.1",
"react-native-localize": "^3.0.6",
"react-native-modal": "^13.0.1",
"react-native-pager-view": "^6.2.3",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-sqlite-storage": "^6.0.1",
"react-native-webview": "^13.8.4",
"react-native-xml2js": "^1.0.3",
"semver": "^7.6.3",
"typescript": "^5.3.0",
"xml-formatter": "^3.6.2",
"xml-js": "^1.6.11",
"xml2js": "^0.6.2"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@react-native-community/datetimepicker": "^7.6.3",
"@react-native-picker/picker": "^2.7.2",
"react-native-wheel-pick": "^1.2.2"
},
"personal": true
}
after that I add simply the import line in certainly one of my app file
import notifee from '@notifee/react-native';
Now I need to strive it on my gadgets (each Android and iPhone). On Android I acquired no drawback after an npx expo run:android and it runs, as an alternative my iOS app would not not construct: I attempted to construct utilizing eas construct –platform ios –local and I acquired this
Fastlane will not be accessible, ensure it is put in and in your PATH spawn fastlane ENOENT npx exited with non-zero code: 1
Additionally attempting to make use of and outdated growth construct and attempting to run utilizing my very own dev server with npx expo begin –dev-client I acquired errors:
ERROR Error: Notifee native module not discovered.
ERROR Invariant Violation: "major" has not been registered. This could occur if:
Metro (the native dev server) is run from the unsuitable folder. Verify if Metro is working, cease it and restart it within the present challenge.
A module did not load on account of an error and AppRegistry.registerComponent wasn't referred to as.
› Stopped server
After a little bit of looking out on the net I’ve not discovered an answer, do you’ve any strategies for me?
Thanks upfront