Home of The Times' react
/react native
components, using
react-native-web to share across platforms
We require MacOS with Node.js (version 8 with npm v5), yarn (latest) and watchman installed. Native development requires Xcode and Android Studio.
You can try without these requirements, but you'd be on your own.
- Run
yarn
to install dependencies - components can be seen running in a storybook:
- web storybook
yarn storybook
- go to http://localhost:9001
- native storybook
yarn storybook-native
and leave it runningyarn ios
and/oryarn android
to start the (sim|em)ulators- go to http://localhost:7007
In order to view the storybook on native, you'll need to fix a broken font which requires fontforge
brew install fontforge
When you first get a local copy of the fonts you may see some warnings which you can ignore
See the CONTRIBUTING.md for an extensive breakdown of the project