Skip to content

moonrailgun/dreaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

142 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DReaction

Your best debug tool for React Native, React/Web, and Native Android

Highlight:

  • 🟠 Debug Ball (Suuuuuper useful for QA!) πŸ‘€
  • πŸ“œ Logs/Network (Easily track logs and network requests) 🌐
  • πŸ” Data Watcher (Keep an eye on your data in real-time) πŸ“Š
  • ⚑ Custom Command (Run your own custom commands to make debugging even smoother) πŸ–₯️
  • πŸ“ˆ Performance Monitor (Monitor your app’s performance and optimize like a pro) πŸ’ͺ

Screenshot

Image

Draggable ball

This is a draggable ball, you can drag it to anywhere you want. useful for your application is running in a non-developer's phone.

Image

Summary

This is a summary of current connections.

Image

Logs and Network

Image

Data Watcher

Image

Custom Command

Image

Performance Monitor

Image

Get start

Install Client in your Desktop

Download binary client in release page.

https://github.com/moonrailgun/dreaction/releases

Install package for React Native

npm install dreaction-react-native

Auto connect in dev

import { dreaction } from 'dreaction-react-native';

if(__DEV__) {
  dreaction
    .configure()
    .setAsyncStorageHandler(AsyncStorage)
    .useReactNative()
    .connect();
}

or use a ball which can custom ip in mobile, its very helpful for your application is running in a non-developer's phone.

import { DReactionDraggableBall } from 'dreaction-react-native';

function AppContainer() {
  return (
    <>
      <App />
      <DReactionDraggableBall />
    </>
  );
}

Install SDK for Native Android

Add JitPack repository and dependency:

// settings.gradle.kts or root build.gradle
repositories {
    maven { url 'https://jitpack.io' }
}

// app/build.gradle
dependencies {
    debugImplementation 'com.github.moonrailgun:dreaction:android-1.0.0'
}

Initialize in your Application class:

import com.moonrailgun.dreaction.DReaction
import com.moonrailgun.dreaction.DReactionConfig

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        
        if (BuildConfig.DEBUG) {
            DReaction.configure(
                DReactionConfig(
                    host = "192.168.1.100", // Your dev machine IP
                    port = 9600,
                    name = "My Android App"
                )
            )
            .useLogger()
            .useNetwork()
            .usePerformance(this)
            .useCustomCommand()
            .useSharedPreferences(this)
            .connect()
            
            DReaction.performance?.startMonitoring()
        }
    }
}

See Android SDK Documentation for more details.

Example

Check here to learn how to use those feature in code

https://github.com/moonrailgun/dreaction/blob/master/example/expo-app/utils/dreaction.ts

Special Thanks

This Project is quick start from reactotron, most protocol is same. thanks for provide so easy to use tools. This project just add more easy to use feature and improve UI.

License

This project is licensed under the MIT License.

About

Your best debug tool in react-native and react mobile

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5