New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

reactnativecomponents

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactnativecomponents

React Native Components

latest
Source
npmnpm
Version
1.0.2-alpha
Version published
Maintainers
2
Created
Source

React Native Components

React Native Components Library, 封装常用的组件,提供IOS和Android统一的API接口

Components

Badge

Barcode

Button

Camera

Canvas

DatePicker

Dialog

Form

GridView

Icon

Input

LoadingDialog

Picker

RadioGroup

SettingsList

Slider

Switch

Tabs

Api

ActionSheet

Database

数据访问API

Database API Reference

constructor

构造一个Database对象

  • databaseName 数据库名字(默认:REACT_NATIVE_DEFAULT_DATABASE_NAME)

    let db = new Database(); let myDb = new Database('myDB');

Example

let db = new Database();
let collection = db.collection('user_collection');
let user = {
  age: 19
};
await collection.insert(user);
user = await collection.findOne();
user.name = 'Hello';
collection.update(user);
await collection.delete(user);

MediaManager

媒体访问工具

在IOS上使用

需要先链接 RCTCameraRoll 库,然后在链接 SitbRCTMediaManangerSitbRCTMediaMananger库在 ~/react-native-components/ios/SitbRCTMediaMananger

OrientationManager

Toast

Run Examples

git clone git@github.com:sitb-software/ReactNativeComponents.git
cd ReactNativeComponents/Examples && npm install
//android
react-native run-android
react-native run-ios

Amap 定位SDK API

Android 如何使用

权限配置
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Keywords

react

FAQs

Package last updated on 07 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts