react-native-restart
Version:
Sometimes you want to reload your app bundle during app runtime. This package will allow you to do it.
24 lines (23 loc) • 482 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
const {
RNRestart: rnRestart
} = _reactNative.NativeModules;
const Restart = reason => {
if (!reason) {
rnRestart.Restart(null);
} else {
rnRestart.Restart(reason);
}
};
const RNRestart = {
...rnRestart,
restart: Restart,
Restart
};
var _default = exports.default = RNRestart;
//# sourceMappingURL=index.js.map