0.5.0 • Published 2 years ago

react-native-devsettings-android v0.5.0

Weekly downloads
1,112
License
MIT
Repository
github
Last release
2 years ago

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

0.5.0

2 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago