prscX / react-native-app-tour

React Native: Native App Tour Library
Apache License 2.0
640 stars 119 forks source link

null is not an object RNAppTour.show Sequence #105

Open prateekchitransh1907 opened 4 years ago

prateekchitransh1907 commented 4 years ago

RNAppTour.ShowSequence shows error on runtime. The AppTour does not launch

componentDidMount() { setTimeout(() => { let appTourSequence = new AppTourSequence(); this.appTourTargets.forEach((appTourTarget) => { appTourSequence.add(appTourTarget); }); AppTour.ShowSequence(appTourSequence); }, 1000); }

Config used in app :

"dependencies": { "react": "16.13.1", "react-native": "0.63.2", "react-native-app-tour": "^1.0.3" }

Screenshot 2020-08-19 at 11 25 09 PM
annaostapenko22 commented 3 years ago

Hi, have you found the solution? I have the same problem

prateekchitransh1907 commented 3 years ago

There was an issue in my pod file. I was using use_frameworks! in my podfile. Once I removed it and did pod install it started working for me.

annaostapenko22 commented 3 years ago

How did you link the framework MaterialShowcase then? Did you create the folder RNAppTour and drug Pod.xcodepoject from node-modules/react-native-app-tour/ios?

annaostapenko22 commented 3 years ago

@prateekchitransh1907

bouchezb commented 3 years ago

Hi,

Is this module still maintained ? I'm facing the same issue using RN 63 with expo 39 on Android and I cannot find any solution.

TypeError: null is not an object (evaluating 'RNAppTour.ShowSequence')

I haven't found any alternatives to this module which seems very nice by the way. Can someone help to figure out what is the problem ?

rahul-yadav1 commented 2 years ago

in case someone looking for solution. React native version 0.63.3 need to remove 1) pod 'RNAppTour', :path => '../node_modules/react-native-app-tour/ios' from your pod file. 2) Run pod install for me it worked @bouchezb @prateekchitransh1907 @annaostapenko22