-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
iOS: CSS border-style=none is invalid - causes RN red screen warning #319
Labels
Comments
I'm experiencing the same issue and tried using ErrorBoundary to capture the error but that didn't work. |
jsamr
added a commit
that referenced
this issue
Jul 17, 2020
jsamr
added a commit
that referenced
this issue
Jul 17, 2020
jsamr
added a commit
that referenced
this issue
Jul 17, 2020
jsamr
added a commit
that referenced
this issue
Jul 17, 2020
jsamr
added a commit
that referenced
this issue
Jul 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
iOS native styling can't accept border style as
none
. If HTML containingstyle="border-style: none;
is passed in, RN Red-screen warning is shown on RN debug mode:Invalid RCTBorderStyle 'none'. should be one of: (dashed, dotted, solid)
Is this a bug report or a feature request?
Bug report
Have you read the guidelines regarding bug report?
Yes
Have you read the documentation in its entirety?
Yes
Have you made sure that your issue hasn't already been reported/solved?
Yes
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
iOS only
Is the bug reproductible in a production environment (not a debug one)?
Not testable at present
Have you been able to reproduce the bug in the provided example?
Environment
Environment:
React: 16.9.0
React native: 0.61.2
react-native-render-html: 4.1.2
Target Platform:
iOS 12.4
Steps to Reproduce
style="border-style: none;
e.g.
<iframe src="www.example.org" scrolling="no" style="border-style: none; width:100%; height:290px;"></iframe>
Expected Behavior
react-native-render-html renders the HTML without warning - and converts
border-style=none
to the correct format for iOS native styling.Actual Behavior
RN gives red screen warning:
Invalid RCTBorderStyle 'none'. should be one of: (dashed, dotted, solid)
The text was updated successfully, but these errors were encountered: