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

Cannot read property 'pageY' of undefined #160

Open
JeremyBradshaw7 opened this issue Nov 30, 2018 · 3 comments · May be fixed by #167
Open

Cannot read property 'pageY' of undefined #160

JeremyBradshaw7 opened this issue Nov 30, 2018 · 3 comments · May be fixed by #167

Comments

@JeremyBradshaw7
Copy link

JeremyBradshaw7 commented Nov 30, 2018

Sometimes this unhandled exception occurs on tapping on a sortable item, if I have moveOnPressIn set:

Unhandled JS Exception: TypeError: Cannot read property 'pageY' of undefined

This error is located at:
    in SortRow (at index.js:418)
    in RCTView (at View.js:60)
    in View (at index.js:487)
    in SortableListView (created by EditFrame)
    in RCTView (at View.js:60)
    in View (created by EditFrame)
    in RCTView (at View.js:60)
    in View (created by EditFrame)
    in RCTView (at View.js:60)
    in View (created by EditFrame)
    in RCTView (at View.js:60)
    in View (created by EditFrame)
    in EditFrame (created by ModuleEdit)
    in ModuleEdit (created by Connect(ModuleEdit))
    in Connect(ModuleEdit) (at SceneView.js:17)
    in SceneView (at CardStack.js:466)
    in RCTView (at View.js:60)
    in View (at createAnimatedComponent.js:154)
    in AnimatedComponent (at Card.js:12)
    in Card (at PointerEventsContainer.js:39)
    in Container (at CardStack.js:498)
    in RCTView (at View.js:60)
    in View (at CardStack.js:414)
    in RCTView (at View.js:60)
    in View (at CardStack.js:413)
    in CardStack (at CardStackTransitioner.js:67)
    in RCTView (at View.js:60)
    in View (at Transitioner.js:142)
    in Transitioner (at CardStackTransitioner.js:19)
    in CardStackTransitioner (at StackNavigator.js:41)
    in Unknown (at createNavigator.js:13)
    in Navigator (at createNavigationContainer.js:226)
    in NavigationContainer (at SceneView.js:17)
    in SceneView (at DrawerScreen.js:21)
    in DrawerScreen (at withCachedChildNavigation.js:69)
    in withCachedChildNavigation(DrawerScreen) (at DrawerNavigator.js:71)
    in Unknown (at createNavigator.js:13)
    in Navigator (at DrawerView.js:178)
    in RCTView (at View.js:60)
    in View (at createAnimatedComponent.js:154)
    in AnimatedComponent (created by DrawerLayout)
    in RCTView (at View.js:60)
    in View (created by DrawerLayout)
    in DrawerLayout (at DrawerView.js:158)
    in DrawerView (at DrawerNavigator.js:88)
    in Unknown (at createNavigator.js:13)
    in Navigator (at createNavigationContainer.js:226)
    in NavigationContainer (created by PrimaryNav)
    in PrimaryNav (created by Connect(PrimaryNav))
    in Connect(PrimaryNav) (created by App)
    in RCTView (at View.js:60)
    in View (at Root.js:13)
    in Root (at connectStyle.js:384)
    in Styled(Root) (created by App)
    in PersistGate (created by App)
    in Provider (created by App)
    in App (at renderApplication.js:33)
    in RCTView (at View.js:60)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:60)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:32)
@lytieunuong1
Copy link

I have the same issue ;( anybody can help us please T_T

@lytieunuong1
Copy link

I tried to change the code in index.js file of this library and it works perfectly

componentDidMount() {
    // InteractionManager.runAfterInteractions(() => {
      this.timer = setTimeout(() => this && this.measureWrapper(), 0)
    // })
  }

@gazedash gazedash linked a pull request Mar 20, 2019 that will close this issue
oleg-kochura added a commit to oleg-kochura/react-native-sortable-listview that referenced this issue May 21, 2019
@smilingkylan
Copy link

smilingkylan commented Jun 13, 2019

Could we get the PR for this merged, please?

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

Successfully merging a pull request may close this issue.

3 participants