An open API service indexing awesome lists of open source software.

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.

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.