Cannot read the property 'measure' of null
I am using react-native-motion along with react-router-native
I have FlatList with list of items where each item is wrapped with ShareElement like this,
<SharedElement id={'source'}>
<View style={cardFirstView}>
<View style={{width: item.imageurl ? '80%' : '100%'}}>
<Text type={'bold'} numberOfLines={1} ellipsizeMode={'tail'} style={equipmentName}>{displayname}</Text>
<Text numberOfLines={1} ellipsizeMode={'tail'} style={[locationStyle, {marginTop: 5, color: location ? "#000000" : '#7e7e7e'}]}>{location ? location : "--- Location not specified ---"}</Text>
</View>
</View>
</SharedElement>
and then i did the same with detail page as follows,
<SharedElement sourceId={'source'}>
<View style={headerStyle}>
<View style={{flexDirection: 'row', alignItems: 'center'}}>
<TouchableOpacity onPress={() => this.props.history.goBack()} style={{padding: 10}}>
<GSIcons name={'backButton'} style={{height: 20, width: 20}} color={'white'} />
</TouchableOpacity>
<Text type={'bold'} numberOfLines={1} ellipsizeMode={'tail'} style={pageTitleStyle}>{displayname}</Text>
</View>
<Text style={subTitleStyle}>{contractType}</Text>
</View>
</SharedElement>
When detail page is opened by tapping on any of the FlatList item, Following error occurs,

1.Can we use this package with 'react-native-router'? 2.If so, Please correct me if i am using the package in the wrong way. Thank You.
Also having that issue
i have same issue
same + 100
https://github.com/xotahal/react-native-motion/pull/41
Guys I've had the same problem and it seems that it was missing a return. I've done a pull request that seems to solve this problem, now we should wait for its review.
Credits to @robcoutinho who found this solution.