mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make RCTDevMenu and RCTDevSettings TurboModule-compatible
Summary: Changelog: [iOS][Added] - Make RCTDevMenu and RCTDevSettings TurboModule-compatible Reviewed By: shergin Differential Revision: D18148890 fbshipit-source-id: bd4f0b2797e299cd963e34fa47044a9e1232efe0
This commit is contained in:
committed by
Facebook Github Bot
parent
686ab49107
commit
fe3ae9dce8
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
||||
* directory of this source tree.
|
||||
*
|
||||
* <p>Generated by an internal genrule from Flow types.
|
||||
*
|
||||
* @generated
|
||||
* @nolint
|
||||
*/
|
||||
|
||||
package com.facebook.fbreact.specs;
|
||||
|
||||
import com.facebook.react.bridge.ReactApplicationContext;
|
||||
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
||||
import com.facebook.react.bridge.ReactMethod;
|
||||
import com.facebook.react.bridge.ReactModuleWithSpec;
|
||||
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
||||
|
||||
public abstract class NativeDevMenuSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule {
|
||||
public NativeDevMenuSpec(ReactApplicationContext reactContext) {
|
||||
super(reactContext);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public abstract void reload();
|
||||
|
||||
@ReactMethod
|
||||
public abstract void debugRemotely(boolean enableDebug);
|
||||
|
||||
@ReactMethod
|
||||
public abstract void setProfilingEnabled(boolean enabled);
|
||||
|
||||
@ReactMethod
|
||||
public abstract void show();
|
||||
|
||||
@ReactMethod
|
||||
public abstract void setHotLoadingEnabled(boolean enabled);
|
||||
}
|
||||
Reference in New Issue
Block a user