deanmcpherson / deanmcpherson/react-native-sortable-listview
this.refs.wrapper.measure return undefined with react navigation or other same library
- Dominant language
- JavaScript
- Stars
- 909
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I spend many hours on this issue.
When you use react-native-sortable-listview on a screen load with react navigation but this screen his hidden, this.refs.wrapper.measure will return null for each data only on android.
To solve this issue i reload the entire screen when i want to navigate on with navigation.replace("yourScreen").
I think there are a better solution. But if you have the same problem this solution work fine.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Android behavior with react-native-sortable-listview inside a screen hidden by React Navigation, focusing on the this.refs.wrapper.measure entry point. Compare measurement results before and after navigation; done means the wrapper returns usable measurements without requiring navigation.replace or a full screen reload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100