All Projects → jhen0409 → react-native-devsettings-android

jhen0409 / react-native-devsettings-android

Licence: MIT License
The Android implementation for iOS `NativeModules.DevSettings` of React Native.

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
Starlark
911 projects

react-native-devsettings-android

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

DEPRECATED NOTE The DevSettings implementation for Android have been landed in React Native v0.60.

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].