undefined is not an object (evaluating 'wrapperLayout.pageY)
See original GitHub issueHello, I tried to use latest version from master, but unfortunately it doesn’t work. List is rendering correctly, but if I try to drag item I receive an error.
My setup: IPhone 6 (IOS10) or simulator RN 48.3
Code:
<View style={styles.itemInputContainer}>
<SortableListView
data={parsedArray}
order={Object.keys(parsedArray)}
onRowMoved={console.log}
renderRow={row => <SortableRow data={row} />}
/>
<Input
blurOnSubmit
style={styles.input}
onChange={this.handleNewTextInput}
/>
</View>
Sortable row (same code like in examples):
(
<TouchableHighlight
underlayColor={'#eee'}
style={{
padding: 25,
backgroundColor: '#F8F8F8',
borderBottomWidth: 1,
borderColor: '#eee',
}}
{...this.props.sortHandlers}
>
<Text>
{this.props.data.text}
</Text>
</TouchableHighlight>
)
ParsedArray:
const parsedArray = {
0: {
text: string
},
1: {
text: string
},
....
}
Issue is related with lines 448-452:
componentDidMount() {
InteractionManager.runAfterInteractions(() => {
setTimeout(this.measureWrapper, 0)
})
}
I set debugger inside callback but it was never invoked. Without InteractionManager.runAfterInteractions
it’s working as expected.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Undefined is not an object (evaluating 'wrapperLayout.pageY')
I'm getting this error in IOS, does anyone know what it can be? No Android is working properly. Edit: My workaround is edit...
Read more >undefined is not an object (evaluating 'M.layout.force') - Stack ...
I'm new to JSNetworkX. I created a graph using the examples from jsnetworkx.org but I can only log it, I can't display it....
Read more >Error: undefined is not an object (evaluating 'i.status') when ...
So I'm trying to register a user manually using velo. I followed the documentation pretty closely but I still get this error: Error: ......
Read more >Undefined is not an object (evaluating 'f.postcount')
Hi, I'm writing you because I have a page where I use the Ajax Load More plugin and I don't know ... Undefined...
Read more >January TypeError: 'undefined' is not an object (evaluating ...
it says January TypeError: 'undefined' is not an object (evaluating 'console.log("January").substring') and i don't know how to fix that or what is wrong ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jpudysz I am facing same issue and also using animation.
How can I fix it ? Please help
@rajeshpanwar007 I was using
Animated.loop
in the previous screen. What’s more screen withSortableListView
was stacked above previous screen, because I was usingStackNavigator
fromreact-navigation
. I resolved it by finding this edge case and disabling animation somehow (I was calling API and I forgot about stopping animation on catch). I did it with something like this (I’m using TS):Your scenario may vary… just watch your
Animations
on stacked screens and ensure that you will stop them before user will enter screen withSortableListView
.