Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR has two changes. Keep it open for more tests before a merge.
1. The RTL fix (
7e77103)Some components mirror a physical side (
left, a corner) by hand on the web in RTL, because react-native-web keeps the sides physical. A web runtime that swapsleftandrightitself then flipped them two times: theSliderfilled from the wrong side, and theLinearProgress,Tabs,ButtonGroup, andCarouselhad the same fault.@rootnative/utils:swapsLeftAndRight()readsI18nManager.doLeftAndRightSwapInRTLon the web too, andwebKeepsPhysicalSides()replaces each "web and RTL" check.@rootnative/utils:swapsLeftAndRightandwebKeepsPhysicalSides. The registry has both names.rtl-swap.web.test.tsx(15 cases) and 4 native cases inutils.2. The example on @rootnative/web (
53bcf29)On the web, the example app now runs on
@rootnative/web0.0.3 in place of react-native-web.withRootNativein the Metro config sends eachreact-nativeand react-native-web import to@rootnative/web-expo. react-native-web 0.21.4 stays in the root tree for the web Jest projects of the packages.Checked
Open before a merge
53bcf29: "Validate" passes, with the static export check (48 pages pass the audit and load clean in Chrome) and the server export check (47 pages).withRootNativeand the RTL fix.@rootnative/web, a press plays the corner morph (28border-radiussteps in about 430 ms) and 11 steps of the state layer color. On react-native-web, the same click writes 4 color steps in 50 ms and noborder-radiusstep. So the extra style work is animation that react-native-web doesn't show. Not compared with iOS or Android yet./text-fieldload, style recalc: one more recalc of the full document (319 elements, 18 ms at 4x), fromcreateSheetof@rootnative/web-expo. The server HTML of a static export doesn't have the reset sheet, so the client inserts it first inhead. It happens on each route. A fix belongs in@rootnative/web-expo./i18n(hreflang), not yet compared with react-native-web.