react-native-unimodules icon indicating copy to clipboard operation
react-native-unimodules copied to clipboard

RN version 0.66.1 install onsignal got this error Could not load RNOneSignal native module. Make sure native dependencies are properly linked.

Open Chandara-97 opened this issue 3 years ago • 3 comments

Hi there !! I want to use Onesignal then type this command line: "yarn add react-native-onesignal" I got this error: "Could not load RNOneSignal native module. Make sure native dependencies are properly linked." My react native(CLI): "react-native": "0.66.1",

Chandara-97 avatar Jan 22 '22 05:01 Chandara-97

Hi @Chandara-97 I assume you are using expo all you have to do is this command, Add OneSignal by running yarn add react-native-onesignal Link OneSignal with expo install react-native-onesignal Add OneSignal Plugin expo install onesignal-expo-plugin

kmkz-69 avatar Jan 22 '22 18:01 kmkz-69

Thanks @kmkz-69 !! Do you have any conguration because I'm use CLI

Chandara-97 avatar Jan 23 '22 00:01 Chandara-97

You don't need any configuration , first delete your node folder , expo install react-native-onesignal expo install onesignal-expo-plugin and check your app.json if expo did or did not add the plugin you need to add it ,"plugin":[ "onesignal-expo-plugin"]

kmkz-69 avatar Jan 24 '22 19:01 kmkz-69