TheWidlarzGroup / react-native-notificated

⚡️React Native toast notifications
https://thewidlarzgroup.github.io/react-native-notificated/
MIT License
354 stars 17 forks source link

[BUG] After upgrade version from 0.1.0 to newer, got an error #248

Closed micbaumr closed 6 months ago

micbaumr commented 6 months ago

Prerequisites Please answer the following questions for yourself before submitting an issue.

Describe the bug I'm using expo to build android, ios and web app. After upgrading react-native-notificated from 0.1.0 version to 0.1.1 or higher I got error :

›Uncaught Error: Your web project is importing a module from 'react-native' instead of 'react-
Expo. fx. web. tsx: 12
native-web'. Learn more: https://expo.fyi/fb-batched-bridge-config-web
at get (Expo. fx. web. tsx:12:1)
at./node_modules/react-native/Libraries/BatchedBridge/NativeModules.js (NativeModules.js:181:1)
_webpack_require_
- (bootstrap:24:1)
at fn (hot module replacement:62;1)
at./node_modules/react-native/Libraries/TurboModule/TurboModuleRegistry.js (TurboModuleRegistry_js: 15:1)
at in Choi marule replacement: 62.1)
(bootstrap: 24:1)
at /node_modules/react-native/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Running in web browser without an error Possible Solution

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):