Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

[React Native] Fix instance measure of rnstyle for Android #748

Merged
merged 2 commits into from
May 31, 2017

Conversation

jhen0409
Copy link
Contributor

It looks like measure some instance will got undefined in Android (See this comment), we can avoid it use undefined values as measuredLayout send to react-devtools.

The original errors will causing react-devtools not to work properly on Android.

@gaearon
Copy link
Contributor

gaearon commented May 31, 2017

Doesn't this mean React Native itself has a bug in measure() implementation?

@jhen0409
Copy link
Contributor Author

jhen0409 commented May 31, 2017

Doesn't this mean React Native itself has a bug in measure() implementation?

It should be a bug in React Native, it seems this issue is only for some top-level View. I just saw the built-in inspector of RN, it have the same issue (It should get the correct width / height in iOS):

2017-05-31 9 58 13

The built-in inspector doesn't throw any errors, so I think we can avoid the error first in here. I might to tracking code of React Native for Android, try to fix it or just file an issue.

@gaearon
Copy link
Contributor

gaearon commented May 31, 2017

Thanks. I’ll merge this for now but please raise an issue in RN.

@gaearon gaearon merged commit 14b8afd into facebook:master May 31, 2017
@jhen0409 jhen0409 deleted the patch-5 branch May 31, 2017 20:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants