react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

Remote JS

Open JAisonsudha opened this issue 1 year ago • 1 comments

how to enable Remote Js In my emulator ,and i doesn't have remote js options in my emulator

JAisonsudha avatar Jul 10 '24 09:07 JAisonsudha

import NativeDevSettings from 'react-native/Libraries/NativeModules/specs/NativeDevSettings'

Assign this to a dev-only button or useEffect call :

const connectToRemoteDebugger = () => {
  NativeDevSettings.setIsDebuggingRemotely(true);
};

I used this in my App.tsx file in a useEffect

useEffect(() => {
  connectToRemoteDebugger();
},[])

`

Ashishpal438 avatar Aug 05 '24 07:08 Ashishpal438