mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor to reuse EmptyReactNativeConfig from ReactNativeConfig
Summary: Quick refactor to reuse EmptyReactNativeConfig from ReactNativeConfig changelog: [internal] internal Reviewed By: genkikondo Differential Revision: D34283060 fbshipit-source-id: 32400d5ed6defd9f82953dc49ae365598db71bbc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
be9cf17316
commit
858ccfc9c8
@@ -23,28 +23,7 @@ import com.facebook.proguard.annotations.DoNotStrip;
|
||||
@DoNotStrip
|
||||
public interface ReactNativeConfig {
|
||||
|
||||
public final ReactNativeConfig DefaultValuesReactNativeConfig =
|
||||
new ReactNativeConfig() {
|
||||
@Override
|
||||
public boolean getBool(@NonNull String param) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getInt64(@NonNull String param) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getString(@NonNull String param) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getDouble(@NonNull String param) {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
public final ReactNativeConfig DefaultValuesReactNativeConfig = new EmptyReactNativeConfig();
|
||||
|
||||
/**
|
||||
* Get a boolean param by string name. Default should be false.
|
||||
|
||||
Reference in New Issue
Block a user