8000 GitHub - eurobob/react-native-devsettings-android: The Android implementation for iOS `NativeModules.DevSettings` of React Native.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eurobob/react-native-devsettings-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-devsettings-android

The Android implementation for iOS NativeModules.DevSettings of React Native.

NOTE The features will try PR to react-native, currently this package will help to used for most RN versions.

Installation

$ npm install --save react-native-devsettings-android
$ react-native link react-native-devsettings-android

Usage

These methods are only for debug mode, doesn't effect in release mode.

import { NativeModules } from 'react-native'

// Methods
NativeModules.DevSettings.reload()
NativeModules.DevSettings.toggleElementInspector()
NativeModules.DevSettings.setIsDebuggingRemotely(bool)
NativeModules.DevSettings.setLiveReloadEnabled(bool)
NativeModules.DevSettings.setHotLoadingEnabled(bool)

// Extra method that haven't on iOS
NativeModules.DevSettings.show()

Doesn't support the following methods:

NativeModules.DevSettings.setIsShakeToShowDevMenuEnabled(bool)
NativeModules.DevSettings.setProfilingEnabled(bool)

Related projects

License

MIT

About

The Android implementation for iOS `NativeModules.DevSettings` of React Native.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 43.2%
  • Objective-C 30.0%
  • JavaScript 15.1%
  • Starlark 11.7%
0