https://github.com/maman/multiplatform
Single codebase, multiple platform target.
https://github.com/maman/multiplatform
babel-plugin react react-native
Last synced: 5 days ago
JSON representation
Single codebase, multiple platform target.
- Host: GitHub
- URL: https://github.com/maman/multiplatform
- Owner: maman
- Created: 2018-11-03T05:59:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T10:35:51.000Z (over 2 years ago)
- Last Synced: 2025-03-12T19:40:27.812Z (2 months ago)
- Topics: babel-plugin, react, react-native
- Language: Objective-C
- Size: 2.81 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Multiplatform
This repo contains universal react component that can renders to both web & native.
Uses babel to perform wizardry. See [babel-multiplatform.js](babel/babel-multiplatform.js) for details.
## Running examples
```sh
multiplatform$ yarn
multiplatform$ npx react-native-cli run-android # Open emulator & build development APK
multiplatform$ npx react-native-cli run-ios # Open emulator & install iOS development app to iOS emulator
multiplatform$ yarn start:rn # Run react-native packager
multiplatform$ yarn start:web # Run local development server
```When the app opens on emulator & opened in the browser, make some changes to [App.js](App.js) and see the results live.