@blueeast/bluerain-platform-react-native

Bluerain-OS Platform for react-native

Usage no npm install needed!

<script type="module">
  import blueeastBluerainPlatformReactNative from 'https://cdn.skypack.dev/@blueeast/bluerain-platform-react-native';
</script>

README

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:

APIs

ReactNativePlugin

Extends Plugin

ReactNative Plugin

Properties

  • pluginName string "ReactNative"
  • slug string "react-native"