Uh oh!
There was an error while loading. Please reload this page.
Allows translucent backgrounds to be applied to WebViews + adds props for disabling scrolling - #767
Allows translucent backgrounds to be applied to WebViews + adds props for disabling scrolling#767lwansbrough wants to merge 5 commits into
Conversation
facebook-github-bot
commented
Apr 9, 2015
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
lwansbrough
commented
Apr 9, 2015
Signed the CLA. |
facebook-github-bot
commented
Apr 9, 2015
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
nicklockwood
commented
Apr 9, 2015
Why not just "backgroundColor"? Also, I feel like the "opaque" attribute is an implementation detail that we should hide. For example, we could set it automatically based on the opacity of the color specified. |
lwansbrough
commented
Apr 9, 2015
I really have no preferences as to how it's implemented :P I just did it the way it makes sense to me. I used underlayColor so that it isn't confused with the backgroundColor style attribute. |
nicklockwood
commented
Apr 11, 2015
I'm a little unclear about why backgroundColor is distinct from underlayColor? Why would you ever want them to be different? |
lwansbrough
commented
Apr 11, 2015
@nicklockwood Yeah I regret changing that. I see now also that I agree with your initial comment: hiding the |
- Enable/disable scrolling through `allowScroll` - Enable/disable scroll bouncing through `allowBounce` - Automatically adjust WebView's opacity based on backgroundColor - Default WebView backgroundColor to white to account for the opacity changes
opaque and underlayColor to WebView.lwansbrough
commented
Apr 11, 2015
Changes discussed above have been made. Also added props for disabling scrolling and/or scroll bounce. |
There was a problem hiding this comment.
can you use the same name as <ScrollView> component? I think it's just bounces and scrollEnabled
vjeux
commented
Apr 12, 2015
Looks good to me after the change, thanks for using backgroundColor, it's much more logical that way |
Enables overwriting of underlying colors for WebViews. Especially useful if you want to give your WebView a transparent background.