This is a working boilerplate for react native web with server side rendering. It includes some configs that are not out of the box from react-native-web server side rendering guide.
- bootstrapped with Create React App.
- use
webpack-isomorphic-tools
to allowrequire('./assets/img.png')
on server side - use
babel-plugin-extension-resolver
to resolve.web.js
on server side - use
babel-plugin-react-native-web
to resolvereact-native
toreact-native-web
on server side
npm run build && npm run server