Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined recEvt[mappingKey]. #106

Open
Werewolve opened this issue Nov 7, 2017 · 2 comments
Open

undefined recEvt[mappingKey]. #106

Werewolve opened this issue Nov 7, 2017 · 2 comments

Comments

@Werewolve
Copy link

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?

@karna41317
Copy link

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 })
                      }
  } }

@kenpham4real
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants