Bluerain-OS Platform for react-native-web
npm install @blueeast/bluerain-platform-react-native-webIt is used to provide react-native components and APis to your web App using react-native-web. https://blueeast.gitbook.io/bluerain-platform-react-native-web
| 🌏 Web | 🖥 Electron | 📱 React Native |
| :----------------: | :----------------: | :----------------: |
| ✔️ | ✔️ | ✖️ |
Run the following command in the plugin directoy:
``shell`
yarn add @blueeast/bluerain-platform-react-native-web
It is used to render MainView of App
`react`
import BR from '@blueeast/bluerain-os';
BR.Utils.setMainView=(App) => {
RNB.AppRegistry.registerComponent('MyApp', () => App)
RNB.AppRegistry.runApplication('MyApp', { rootTag: document.getElementsByClassName('app-container') });
}
This plugin registers following components in the Component registry, so they can be reused later by other apps and plugins:
react-native-web
- ActivityIndicator
- Button
- Checkbox
- Image
- KeyboardAvoidingView
- Flatlist
- ListView
- Picker
- Modal
- ProgressBar
- RefreshControl
- SafeAreaView
- ScrollView
- SectionList
- Slider
- StaticContainer
- StaticRenderer
- StatusBar
- Switch
- Text
- TextInput
- Touchable
- UnimplementedView
- View
- VirutalizedList
ReactNativeWeb Plugin
- pluginName string "ReactNativeWeb"slug` string "react-native-web"
-