react-native-app-intro icon indicating copy to clipboard operation
react-native-app-intro copied to clipboard

undefined recEvt[mappingKey].

Open Werewolve opened this issue 8 years ago • 2 comments

simulator screen shot - iphone 6s - 2017-11-07 at 01 59 09

I get that error after updating to the latest react native version. Any suggestions?

Werewolve avatar Nov 07 '17 01:11 Werewolve

in your component,

replace onScroll with

 onScroll={(e) => {

                const currentScrollPos = e.nativeEvent.contentOffset.y
                const sensitivity = 50

                if (Math.abs(currentScrollPos - this.state.lastScrollPos) > sensitivity) {

                            this.props.doSomething()
                            this.setState({lastScrollPos: e.nativeEvent.contentOffset.y })
                      }
  } }

karna41317 avatar Nov 09 '17 11:11 karna41317

I encountered this issue again. Anyone found a detailed and clear answer?

kenpham4real avatar May 02 '20 04:05 kenpham4real