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

WIP: RN update to 0.46 #7679

Closed
wants to merge 33 commits into from
Closed

Conversation

chrisnojima
Copy link
Contributor

@chrisnojima chrisnojima commented Jul 7, 2017

This PR updates our RN to 0.46. This also means our react dependency got updated to 16 alpha which affects desktop also.
Additionally the update to 0.46 updates some tooling which allows us to see the dimensions of views in the react devtools which led me to discover some high level layout problems. This PR also addresses this. Before we had flex:1 screens which (depending on the contents) push the screens below the fold. This lead to bugs about things being cut off.

TODO:

  • ios sanity check
  • desktop
  • android
  • smoketest ios
  • smoketest android
  • smoketest desktop

Known issues:

  • Android has a weird underline on the inputs. This looks really bad on searchv3 as it has a green line going through the text. This seems like something bad on the native side as we're not passing anything to the component. The underlineColorAndroid setting is actually a different underline than what we're seeing here

notes:

  • A lot of addons are dead / moved
    Plan for Addons in React 16 facebook/react#9207
    No react-perf on desktop :(
  • We got to kill our vendored FlatList!
  • Popup list wasn't working with react 16, we needed to kill it anyways (material-ui) so i reimplemented it. It was only used in login

This changes enough things that we should defer until after searchv3

@cjb
Copy link
Contributor

cjb commented Jul 8, 2017

Have been running this branch, feels good to me.

@chrisnojima
Copy link
Contributor Author

chrisnojima commented Jul 8, 2017 via email

@chrisnojima
Copy link
Contributor Author

A lot of our layout was using flexGrow incorrectly which lead to content being rendered below the fold. At a top level I'm forcing the nav children to take up the full non-tabbar space

@chrisnojima
Copy link
Contributor Author

replaced by this cleanup pr: #7759

@chrisnojima chrisnojima deleted the nojima/DESKTOP-update-rn-46 branch September 20, 2017 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants