🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-xstate-inspect

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-xstate-inspect

React Native package that powers the flipper xstate inspect plugin

0.0.3
latest
Source
npm
Version published
Weekly downloads
7
40%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-flipper-xstate

This packages allows Android and iOS apps to use the Flipper-plugin-xstate plugin to visualize and interact with their xstate machines.

Xstate Viz

Dependencies

This package depends on the native package React Native Flipper, so you will have to recompile the native apps before using this plugin.

Usage

Install the Flipper plugin on your desktop app

Install the package

$ yarn add react-native-flipper-xstate

To use, simply import and call the inspect function at the root of your project (index.js) You will only want to do this in Debug/Dev builds.

import { inspect } from "react-native-flipper-xstate";

if (__DEV__) {
  inspect();
}

You also must specify the devTools option when creating your machines. Here is an example using the useMachine hook.

const [current, send] = createMachine(machine, { devTools: true });

Todo

  • Get Typescript to work

Keywords

flipper-plugin

FAQs

Package last updated on 17 Jun 2022

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