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

WebView doesn't support width: 100% and alignSelf: stretch #20551

Closed
3 tasks done
sesm opened this issue Aug 6, 2018 · 7 comments
Closed
3 tasks done

WebView doesn't support width: 100% and alignSelf: stretch #20551

sesm opened this issue Aug 6, 2018 · 7 comments
Labels
Component: WebView Related to the WebView component. Resolution: Locked This issue was locked by the bot.

Comments

@sesm
Copy link

sesm commented Aug 6, 2018

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 8.11.3
Yarn: 1.7.0
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.3.2 => 16.3.2
react-native: 0.55.4 => 0.55.4

Also reproducible on latest version of react-native on Expo.

Description

WebView doesn't support width: 100% and alignSelf: stretch. The only way to horizontally stretch a WebView is to set explicit width.

Reproducible Demo

https://snack.expo.io/rk8HNfLSQ
In this example width: 100% and alignSelf: stretch work perfectly well on View but don't work on WebView.

@react-native-bot

This comment has been minimized.

@react-native-bot react-native-bot added 📋No Environment Info Component: WebView Related to the WebView component. labels Aug 6, 2018
@sesm
Copy link
Author

sesm commented Aug 6, 2018

This is what happened to all previous issues: this problem is so easily reproducible, that noone bothered to post react-native info. Then the bot put No Environment Info label, nobody bothered to look at the issue, then it got closed down due to inactivity.

@sesm
Copy link
Author

sesm commented Aug 6, 2018

I wonder, how ticket can have No environment info and Old version at the same time, when version is determined from environment info?

@hramos
Copy link
Contributor

hramos commented Aug 8, 2018

Removing both labels, as WebView has intentionally not being updated in recent releases, save for one security-related issue in 0.56. The component is not actively updated, and we are proposing it be removed from the core library. You can follow react-native-community/discussions-and-proposals#3 for updates.

In the meantime, the issue shall remain open as whoever takes over the component will also inherit all open WebView issues.

@react-native-bot
Copy link
Collaborator

Can you reproduce the issue on the latest release, v0.56?

@sesm
Copy link
Author

sesm commented Aug 13, 2018

@hramos thanks for clarification!

@jamonholmgren
Copy link
Collaborator

Migrated to react-native-webview/react-native-webview#27 and can be closed here.

@hramos hramos closed this as completed Sep 19, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Sep 19, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: WebView Related to the WebView component. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants