mirror of
https://github.com/status-im/react-native.git
synced 2025-02-20 13:18:07 +00:00
Enable support for using new MobileConfigNativeModule in RN Core/Fabric C++
Summary: Enable support for using new MobileConfigNativeModule in RN Core/Fabric C++. Hack will be removed as part of T40273916 once MobileConfigNativeModule has rolled out to 100% of users and FbReactMobileConfigModule has been removed. Reviewed By: mdvacca Differential Revision: D14015962 fbshipit-source-id: 1b8ff0fb447040393a25fd03d9fb868877228ecc
This commit is contained in:
parent
a15e723476
commit
2c09c06a4d
@ -8,8 +8,31 @@ package com.facebook.react.fabric;
|
||||
|
||||
// This is a wrapper for the ReactNativeConfig object in C++
|
||||
public interface ReactNativeConfig {
|
||||
/**
|
||||
* Get a boolean param by string name. Default should be false.
|
||||
*
|
||||
* @param param The string name of the parameter being requested.
|
||||
*/
|
||||
boolean getBool(String param);
|
||||
|
||||
/**
|
||||
* Get an integer param by string name. Default should be 0.
|
||||
*
|
||||
* @param param The string name of the parameter being requested.
|
||||
*/
|
||||
int getInt64(String param);
|
||||
|
||||
/**
|
||||
* Get a string param by string name. Default should be "", empty string.
|
||||
*
|
||||
* @param param The string name of the parameter being requested.
|
||||
*/
|
||||
String getString(String param);
|
||||
|
||||
/**
|
||||
* Get a double param by string name. Default should be 0.
|
||||
*
|
||||
* @param param The string name of the parameter being requested.
|
||||
*/
|
||||
double getDouble(String param);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user