🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@rn-debugger/native-connector

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rn-debugger/native-connector

Connector react-native for rn-noname

latest
npmnpm
Version
0.8.0
Version published
Maintainers
1
Created
Source

Project @rn-debugger/native-connector

Why use it

This application allows to read react-native bridge.

What is this bridge?

The Bridge allows communication between the js of a react application and the peripheral language. In the case of android, the bridge makes a link between JS and Java and in the case of IOS a link between JS and Swift

The messages that navigate in this bridge are in JSON format. They have 4 attributes: type, module, method and argurments (args)

This application will then allow you to display its messages in a console and offers other possibilities such as reading the TreeView of application. This tree is reconstructed using the data intercepted in the bridge.

How to use it ?

  • Install it with yarn add @rn-debugger/native-connector --dev

    or npm install --save-dev @rn-debugger/native-connector

  • Setup the RNConnector in your index.js

import { AppRegistry } from 'react-native';
import RNConnector from '@rn-debugger/native-connector/dist/RNConnector';
import App from './App';


RNConnector.stream({ server: 'http://[Your Ip address]:3000' });

AppRegistry.registerComponent('RNTest', () => App);
  • Install the @rn-debugger/cli with

    npm install -g @rn-debugger/cli

  • Run the tool in your terminal with rn-debugger

FAQs

Package last updated on 24 Jul 2018

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