https://github.com/jeepeng/react-native-root-views
https://github.com/jeepeng/react-native-root-views
react-native react-native-actionsheet react-native-loading react-native-root-view react-native-root-views
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeepeng/react-native-root-views
- Owner: Jeepeng
- Created: 2017-08-29T05:13:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-06T13:22:44.000Z (over 6 years ago)
- Last Synced: 2025-09-25T23:38:18.964Z (8 months ago)
- Topics: react-native, react-native-actionsheet, react-native-loading, react-native-root-view, react-native-root-views
- Language: JavaScript
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-root-views
# Installation
```shell
npm install react-native-root-views --save
```
# Usage
```js
import { ActionSheet, Loading } from 'react-native-root-views';
// show loading
Loading.show();
// hide loading
Loading.hide();
ActionSheet.showActionSheetWithOptions(
{
options: ['拍照', '从相册选择', '取消'],
cancelButtonIndex: 2,
tintColor: '#2b3d54',
},
buttonIndex => {
// do something
},
);
```
# API
## ActionSheet
Same API as ActionSheetIOS
## Loading
### show()
show loading
### hide()
hide loading