mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Rename ReactNativeConfig.getInt64 -> ReactNativeConfig.getLong
Summary: In this I'm renaming ReactNativeConfig.getInt64 -> ReactNativeConfig.getLong changelog: [internal] internal Reviewed By: javache, philIip Differential Revision: D33901536 fbshipit-source-id: 688aff9a849299eb8ad904b75b03d7fb5f0d8172
This commit is contained in:
committed by
Facebook GitHub Bot
parent
45af635b1e
commit
6ab5bb6869
@@ -19,7 +19,7 @@ public class EmptyReactNativeConfig implements ReactNativeConfig {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInt64(final String s) {
|
||||
public long getInt64(final String s) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,12 +31,12 @@ public interface ReactNativeConfig {
|
||||
boolean getBool(@NonNull String param);
|
||||
|
||||
/**
|
||||
* Get an integer param by string name. Default should be 0.
|
||||
* Get a Long param by string name. Default should be 0.
|
||||
*
|
||||
* @param param The string name of the parameter being requested.
|
||||
*/
|
||||
@DoNotStrip
|
||||
int getInt64(@NonNull String param);
|
||||
long getInt64(@NonNull String param);
|
||||
|
||||
/**
|
||||
* Get a string param by string name. Default should be "", empty string.
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ std::string ReactNativeConfigHolder::getString(const std::string ¶m) const {
|
||||
int64_t ReactNativeConfigHolder::getInt64(const std::string ¶m) const {
|
||||
static const auto method = facebook::jni::findClassStatic(
|
||||
"com/facebook/react/fabric/ReactNativeConfig")
|
||||
->getMethod<jint(jstring)>("getInt64");
|
||||
->getMethod<jlong(jstring)>("getInt64");
|
||||
return method(reactNativeConfig_, facebook::jni::make_jstring(param).get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user