React-native: ☂️ Fix annoying Android and iOS issues

Created on 26 Apr 2019  ·  16Comments  ·  Source: facebook/react-native

🐛 Bug Report

Through https://github.com/react-native-community/discussions-and-proposals/issues/104 and https://github.com/react-native-community/discussions-and-proposals/issues/69 we learned about a lot of issues that people pointed out about React Native (cc @slorber @noahtallen @alburdette619). While we addressed many, there are still many issues remaining that need to be validated and if they still persist, fixed.

If you'd like to work on any of these, please comment here to sign up for one of them and send a Pull Request with a fix!

Thank you :)

Bug Android iOS Ran Commands Stale Facebook

Most helpful comment

@sasurau4: give it a try! I’ll wait for your pull request. I think just making sure the app doesn’t crash and shows a useful error message is a good start!

All 16 comments


Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

One of the toggle secureTextEntry issue(s) was addressed in https://github.com/facebook/react-native/pull/23524

I want to work on the issue of style={{ width: "100" }} and forgetting the %.
I have a plan that fix the issue by translate style={{ width: "100"}} to style={{ width: "100%" }} automatically with warning rather than error.
Is the plan good? If not, please tell me other plans :pray:

@sasurau4: give it a try! I’ll wait for your pull request. I think just making sure the app doesn’t crash and shows a useful error message is a good start!

Can work in "On Android, you cannot name a property flex or the app will crash" ?

@cpojer

Hey @matheusmonte, give it a try! Unfortunately I don't have more context myself but maybe @alburdette619 (who mentioned this initially) can provide a repro?

https://twitter.com/estevao_lucas/status/1117572702083190785?s=215

@cpojer I'll enhance the compatible for this error.

@sasurau4 @cpojer I don't know how I feel about automatically converting width: "100" to width: "100%" automatically. I think that it adds a bit of unwanted magic and potentially lead to hard to find bugs.

I personally make sure to always wrap the percentage values in quotes, as do most people, so I think this feature is unnecessary.

@zhongwuzw thank you!

@bryankang I agree with you. We shouldn't automatically convert, but we should make sure that the app doesn't crash and instead make sure we show a redbox error or something. The initial report said that the app crashes. If it already shows an error, we can make sure that it is more useful and if it already shows a proper redbox error we don't need to make a change.

@bryankang I agree with you. We shouldn't automatically convert, but we should make sure that the app doesn't crash and instead make sure we show a redbox error or something. The initial report said that the app crashes. If it already shows an error, we can make sure that it is more useful and if it already shows a proper redbox error we don't need to make a change.

@cpojer @bryankang I just made a PR for it, https://github.com/facebook/react-native/pull/24659. The propose is just to ignore any unexpected value. No error will show up. (AFAIK any error will cause the app to crash in release mode). Let me know what you guys think.

@sasurau4 sorry, I noticed just after I submitted this PR that you volunteered to fix it. My bad. :-(

@elucaswork Never mind! :+1:

@bryankang @cpojer I agree with you about automatically convert may cause something confusing.
According to the #24659, the way to fix this issue is invoke yellow box warning and ignore the invalid value like 100. I think it's better solution rather than my proposal of auto conversion.

I just added a new item by @jlongster which is about fixing an annoying crash, see https://twitter.com/jlongster/status/1123225841075392514 Feel free to sign up for it and propose a PR with a fix!

Can I try "Unhelpful error message with ScrollViews. See " @cpojer

Go for it!


From: Matheus Monte notifications@github.com
Sent: Tuesday, April 30, 2019 10:44:50 PM
To: facebook/react-native
Cc: Christoph Nakazawa; Mention
Subject: Re: [facebook/react-native] ☂️ Fix annoying Android and iOS issues (#24626)

Can I try "Unhelpful error message with ScrollViews. See " @cpojerhttps://github.com/cpojer


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/facebook/react-native/issues/24626#issuecomment-488125630, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAADIKHYBSRWJOGTLGWRHXLPTC4VFANCNFSM4HIWMLWA.

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings