> For the complete documentation index, see [llms.txt](https://blueeast.gitbook.io/bluerain-platform-react-native/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blueeast.gitbook.io/bluerain-platform-react-native/master.md).

# bluerain-platform-react-native

It is used to provide react-native components and APis for your native App using [react-native](https://facebook.github.io/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](https://facebook.github.io/react-native/docs/activityindicator)
* Button [Native](https://facebook.github.io/react-native/docs/button)
* Checkbox [Native](https://facebook.github.io/react-native/docs/switch)
* Image [Native](https://facebook.github.io/react-native/docs/image)
* KeyboardAvoidingView [Native](https://facebook.github.io/react-native/docs/keyboardavoidingview)
* Flatlist [Native](https://facebook.github.io/react-native/docs/flatlist)
* ListView [Native](https://facebook.github.io/react-native/docs/listview)
* Picker [Native](https://facebook.github.io/react-native/docs/picker)
* Modal [Native](https://facebook.github.io/react-native/docs/modal)
* ProgressBar  [Native](https://facebook.github.io/react-native/docs/progressbarandroid)
* RefreshControl [Native](https://facebook.github.io/react-native/docs/refreshcontrol)
* SafeAreaView [Native](https://facebook.github.io/react-native/docs/safeareaview)
* ScrollView [Native](https://facebook.github.io/react-native/docs/using-a-scrollview)
* SectionList [Native](https://facebook.github.io/react-native/docs/sectionlist)
* Slider [Native](https://facebook.github.io/react-native/docs/slider)
* StatusBar [Native](https://facebook.github.io/react-native/docs/statusbar)
* Switch [Native](https://facebook.github.io/react-native/docs/switch)
* Text [Native](https://facebook.github.io/react-native/docs/text)
* TextInput [Native](https://facebook.github.io/react-native/docs/textinput)
* Touchable [Native](https://facebook.github.io/react-native/docs/touchablehighlight)
* View [Native](https://facebook.github.io/react-native/docs/view)

## APIs

* Clipboard [Native](https://facebook.github.io/react-native/docs/clipboard)
* Platform [Native](https://facebook.github.io/react-native/docs/platform-specific-code)
* AppState [Native](https://facebook.github.io/react-native/docs/appstate)
* Dimensions [Native](https://facebook.github.io/react-native/docs/dimensions)
* Linking [Native](https://facebook.github.io/react-native/docs/linking)
* NetInfo [Native](https://facebook.github.io/react-native/docs/netinfo)
* Stylesheet [Native](https://facebook.github.io/react-native/docs/stylesheet)

### ReactNativePlugin

### **Extends** [**Plugin**](https://blueeast.gitbook.io/bluerain-os/api/api-reference#plugin)

ReactNative Plugin

### **Properties**

* `pluginName` [**string**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) "ReactNative"
* `slug` [**string**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) "react-native"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blueeast.gitbook.io/bluerain-platform-react-native/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
