Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-x5

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-x5

X5 WebView for react-native

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

react-native-x5

X5's WebView for React Native on Android (Interfaces based on ReactNative's WebView Component)

Dependencies

  • 0.0.1: react-native >= 0.33.0, react = 15.3.1

Installation

  • Install from npm
npm i react-native-x5 --save

  • Link native library

You can use react-native-cli:

react-native link react-native-x5

Or rnpm:

rnpm link react-native-x5
Add uses-permission

Add those lines to AndroidManifest.xml in your project.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

Usage

Import
import WebView from 'react-native-x5';
Props

Totally same as WebView for react-native

Additional methods:

  • WebView.getX5CoreVersion(callback) static get X5's core version through callback
WebView.getX5CoreVersion(function callback (version) {
    console.log(version); // get `0` if X5 is not installed correctly
});

Detail

腾讯浏览器服务

Keywords

FAQs

Package last updated on 03 Jan 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc