15 ms·
This strong sign of the confidence Twitter has in React Native for Web[1]. In 2017, Nicolas Gallagher gave a talk[2] about why it was used for mobile.twitter.co
by statenjason 7y ago
This strong sign of the confidence Twitter has in React Native for Web[1]. In 2017, Nicolas Gallagher gave a talk[2] about why it was used for mobile.twitter.com.
[1]: https://github.com/necolas/react-native-web https://github.com/necolas/react-native-web
[2]: https://www.youtube.com/watch?v=tFFn39lLO-U https://www.youtube.com/watch?v=tFFn39lLO-U
- ngrilly 7y agoHow do you know they use React Native for Web? The article says they unified their desktop and mobile architectures, but doesn't specify how.
- statenjason 7y agoOpening in React devtools shows a number of hints[1]. "React Native Style Editor" section. "View" components with numeric "style" props. And the classname prefixes "css-" and "r-" match the generated identifiers from react-native-web[2]. [1]: https://imgur.com/lFUvL7P https://imgur.com/lFUvL7P [2]: https://github.com/necolas/react-native-web/blob/45f94eb43daa3cb3d7fae0295877345a176c04c4/packages/react-native-web/src/exports/StyleSheet/compile.js#L81 https://github.com/necolas/react-native-web/blob/45f94eb43da...
- ngrilly 7y agoThat's convincing :-) Thanks!