What happened?
I followed all the steps to setup OneSignal React Native SDK according to https://documentation.onesignal.com/v7.0/docs/react-native-sdk-setup
But I can't get it running. when I load the app with the example code in the setup guide, I got this error

Steps to reproduce?
1. follow https://documentation.onesignal.com/v7.0/docs/react-native-sdk-setup setup iOS & Android onesignal configs
2. start an app with ios emulator
3. observe error on ios emulator
node v 14.19.3
react-native-cli: 2.0.1
react-native: 0.68.2
What did you expect to happen?
no error
React Native OneSignal SDK version
4.4.1
Which platform(s) are affected?
Relevant log output
ERROR TypeError: undefined is not a function (near '..._reactNativeOnesignal.default.init...')
This error is located at:
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in rnPatientPortalUi(RootComponent)
ERROR TypeError: undefined is not a function (near '..._reactNativeOnesignal.default.init...')
This error is located at:
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in rnPatientPortalUi(RootComponent)
Code of Conduct
What happened?
I followed all the steps to setup OneSignal React Native SDK according to https://documentation.onesignal.com/v7.0/docs/react-native-sdk-setup
But I can't get it running. when I load the app with the example code in the setup guide, I got this error
Steps to reproduce?
What did you expect to happen?
no error
React Native OneSignal SDK version
4.4.1
Which platform(s) are affected?
Relevant log output
Code of Conduct