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 the property 'measure' of null #38

Open
Yandamuri opened this issue Jan 30, 2020 · 4 comments
Open

Cannot read the property 'measure' of null #38

Yandamuri opened this issue Jan 30, 2020 · 4 comments

Comments

@Yandamuri
Copy link

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,
Screenshot_20200130_161742_com ybs servsmartgs 1

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.

@ChaossAdept7
Copy link

Also having that issue

@vantuan88291
Copy link

i have same issue

@gotexis
Copy link

gotexis commented Jul 12, 2020

same + 100

@Stomari
Copy link

Stomari commented Jul 24, 2020

#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.

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

5 participants