mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-16 08:19:47 +08:00
Introduce ReactNativeConfiguration to manage experimentation
Summary: Similar to ComponentsConfiguration used by Litho. Allows us to abtest without having to pipe everything through ReactInstanceManager Reviewed By: axe-fb Differential Revision: D9930707 fbshipit-source-id: 43edf7d8fa2bab7b7888df57ea1bec2b4726f51b
This commit is contained in:
committed by
Facebook Github Bot
parent
aac7c4d5d2
commit
230b7b0e72
11
ReactAndroid/src/main/java/com/facebook/react/config/BUCK
Normal file
11
ReactAndroid/src/main/java/com/facebook/react/config/BUCK
Normal file
@@ -0,0 +1,11 @@
|
||||
load("//tools/build_defs/oss:rn_defs.bzl", "rn_android_library")
|
||||
|
||||
rn_android_library(
|
||||
name = "config",
|
||||
srcs = glob(["**/*.java"]),
|
||||
visibility = [
|
||||
"PUBLIC",
|
||||
],
|
||||
deps = [
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.facebook.react.config;
|
||||
|
||||
/**
|
||||
* Hi there, traveller! This configuration class is not meant to be used by end-users of RN. It
|
||||
* contains mainly flags for features that are either under active development and not ready for
|
||||
* public consumption, or for use in experiments.
|
||||
*
|
||||
* These values are safe defaults and should not require manual changes.
|
||||
*/
|
||||
public class ReactFeatureFlags {
|
||||
|
||||
/**
|
||||
* Whether we should load a specific view manager immediately or when it is accessed by JS
|
||||
*/
|
||||
public static boolean lazilyLoadViewManagers = false;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user