bluerain-platform-react-native
It is used to provide react-native components and APis for your native App using react-native . https://blueeast.gitbook.io/bluerain-platform-react-native
Installation
Run the following command in the plugin directoy:
yarn add @blueeast/bluerain-platform-react-native
Utils
It is used to render MainView of App
import BR from '@blueeast/bluerain-os';
import RN from 'react-native';
BR.Utils.setMainView=(App) => {
RN.AppRegistry.registerComponent('MyApp', () => App)
RN.AppRegistry.runApplication('MyApp', { rootTag: document.getElementsByClassName('app-container') });
}
Components
This plugin registers following components in the Component registry, so they can be reused later by other apps and plugins:
- ActivityIndicator Native
- Button Native
- Checkbox Native
- Image Native
- KeyboardAvoidingView Native
- Flatlist Native
- ListView Native
- Picker Native
- Modal Native
- ProgressBar Native
- RefreshControl Native
- SafeAreaView Native
- ScrollView Native
- SectionList Native
- Slider Native
- StatusBar Native
- Switch Native
- Text Native
- TextInput Native
- Touchable Native
- View Native
APIs
- Clipboard Native
- Platform Native
- AppState Native
- Dimensions Native
- Linking Native
- NetInfo Native
- Stylesheet Native
ReactNativePlugin
Plugin
ExtendsReactNative Plugin