Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote JS #804

Open
JAisonsudha opened this issue Jul 10, 2024 · 1 comment
Open

Remote JS #804

JAisonsudha opened this issue Jul 10, 2024 · 1 comment

Comments

@JAisonsudha
Copy link

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

@Ashishpal438
Copy link

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();
},[])

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants