wowmaking / react-native-iron-source

Iron Source SDK React Native bridge
30 stars 37 forks source link

Null is not object (evaluating 'RNTIroinSource.initialzeIron Source' #59

Closed nsknight closed 4 years ago

nsknight commented 4 years ago

import { IronSourceBanner } from '@wowmaking/react-native-iron-source'; import { IronSource } from '@wowmaking/react-native-iron-source';

IronSource.initializeIronSource('8a19a09d', 'userId', { validateIntegration: true, }).then(() => { console.warn('Init finished'); });

IronSourceBanner.loadBanner('LARGE'); IronSourceBanner.addEventListener('ironSourceBannerDidLoad', () => { console.warn('Iron Source banner loaded'); IronSourceBanner.showBanner(); });

StanislavMayorov commented 4 years ago

Hi. Can you share code example?

floelm commented 4 years ago

I am having the same issue.

StanislavMayorov commented 4 years ago

Please provide enough information in the bug description. RN version, react-native-iron-source and native sdk versions. What method causes the error? initializeIronSource? What platform is used?

nsknight commented 4 years ago

Error: RNIronSource.js Null is not object in UiManager method used both manual instigation and also link method
bareflow expo 36.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", "test": "jest --watchAll" }, "jest": { "preset": "jest-expo" }, "dependencies": { "@expo/samples": "~36.0.0", "@expo/vector-icons": "~10.0.0", "@react-navigation/web": "~1.0.0-alpha.9", "expo": "~36.0.0", "expo-asset": "~8.0.0", "expo-constants": "~8.0.0", "expo-font": "~8.0.0", "expo-web-browser": "~8.0.0", "react": "~16.9.0", "react-dom": "~16.9.0", "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz", "react-native-gesture-handler": "~1.5.0", "react-native-reanimated": "~1.4.0", "react-native-screens": "2.0.0-alpha.12", "react-native-web": "~0.11.7", "react-navigation": "~4.0.10", "react-navigation-stack": "~1.10.3", "react-navigation-tabs": "~2.6.2", "expo-linear-gradient": "~8.0.0", "expo-ads-facebook": "8.0.0", "react-native-paper": "3.3.0", "react-native-elements": "1.2.7", "react-native-webview": "~7.4.3" }, "devDependencies": { "babel-preset-expo": "~8.0.0", "jest-expo": "~36.0.0" }, "private": true }

StanislavMayorov commented 4 years ago

We don't test expo support. I'm not familiar with expo. Did you install android/ios ironsrc sdk?

nsknight commented 4 years ago

can you sent me tutorial link ?

StanislavMayorov commented 4 years ago

README is the only documentation. There is setup for react native (react-native init app with android/ios folders). https://github.com/wowmaking/react-native-iron-source#mediation-setup if you can use it with expo please share your experience here.

psaikali commented 4 years ago

Chiming in! @nsknight does this library work with Expo? I'm thinking about using it but if I can get Expo users feedback, that'd be great.

Cheers!

knightkhan commented 4 years ago

Chiming in! @nsknight does this library work with Expo? I'm thinking about using it but if I can get Expo users feedback, that'd be great.

Cheers!

i am level beginner user. i try it but its donot work for me