-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Add inline view examples to RNTester #24814
Conversation
This reverts commit b87336b. Bring back the inline view example
I brought back examples from facebook@0366349. "Inline views" works on iOS and Android. The other two only work on iOS. See the comment for details. I also added some new inline view examples in TextInlineView.js. "Basic" works well. The others do not: - ClippedByText - iOS: The image/view do not get wrapped to the next line - Android: The view gets wrapped to the next line but isn't clipped vertically. The image appears to be positioned too low. - ChangeImageSize/ChangeViewSize: - iOS: First update works. Subsequent updates don't get rendered. - Android: No updates get rendered. - ChangeInnerViewSize: - iOS: First update works. Second update CRASHES the app. - Android: No updates get rendered.
Co-Authored-By: James Ide <ide@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for adding examples :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @rigdern in a2a03bc. When will my fix make it into a release? | Upcoming Releases |
Summary
Now that inline views are supported on iOS and Android, we can add some examples to RNTester. I brought back examples from 0366349.
I also added some new inline view examples in TextInlineView.js. Note that some examples are only supported on iOS because they rely on the inline view being able to size to content. Android's implementation requires that a width and height be specified on the inline view.
Here are the known bugs illustrated by these examples:
Changelog
[Internal] [Added] - Added inline view examples to RNTester
Test Plan
Verified the new examples in RNTester on iOS and Android.
iOS: New Examples
Android: New Examples
Adam Comella
Microsoft Corp.