本文整理汇总了Java中com.facebook.react.ReactPackage类的典型用法代码示例。如果您正苦于以下问题:Java ReactPackage类的具体用法?Java ReactPackage怎么用?Java ReactPackage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ReactPackage类属于com.facebook.react包,在下文中一共展示了ReactPackage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createReactInstanceManager
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected ReactInstanceManager createReactInstanceManager() {
ReactInstanceManagerBuilder builder = ReactInstanceManager.builder()
.setApplication(getApplication())
.setJSMainModuleName(getJSMainModuleName())
.setUseDeveloperSupport(getUseDeveloperSupport())
.setRedBoxHandler(getRedBoxHandler())
.setUIImplementationProvider(getUIImplementationProvider())
.setInitialLifecycleState(LifecycleState.BEFORE_CREATE)
.setNativeModuleCallExceptionHandler(
new ReadingNativeModuleCallExceptionHandler());
for (ReactPackage reactPackage : getPackages()) {
builder.addPackage(reactPackage);
}
String jsBundleFile = getJSBundleFile();
if (jsBundleFile != null) {
builder.setJSBundleFile(jsBundleFile);
} else {
builder.setBundleAssetName(Assertions.assertNotNull(getBundleAssetName()));
}
return builder.build();
}
示例2: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
List<ReactPackage> result = new ArrayList<>();
List<ReactPackage> additionalReactPackages = NavigationApplication.instance.createAdditionalReactPackages();
if (additionalReactPackages != null)
result.addAll(additionalReactPackages);
if (!containsInstanceOfClass(result, MainReactPackage.class)) {
result.add(new MainReactPackage());
}
if (!containsInstanceOfClass(result, NavigationReactPackage.class)) {
result.add(new NavigationReactPackage());
}
return result;
}
示例3: getReactInstanceManager
import com.facebook.react.ReactPackage; //导入依赖的package包/类
public static synchronized ReactInstanceManager getReactInstanceManager(
Application application) {
if (sSingletonManager == null) {
ReactInstanceManager.Builder builder = ReactInstanceManager.builder()
.setApplication(application)
.setJSMainModuleName("index.android")
.setUseDeveloperSupport(BuildConfig.DEBUG)
// TODO figure out the right thing to put here.
.setInitialLifecycleState(LifecycleState.BEFORE_RESUME);
for (ReactPackage reactPackage : getPackages()) {
builder.addPackage(reactPackage);
}
builder.setBundleAssetName("index.android.bundle");
sSingletonManager = builder.build();
}
return sSingletonManager;
}
示例4: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new NearbyPackage()
);
}
示例5: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new CameraPackage()
);
}
示例6: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactTwitterKitPackage(CONSUMER_KEY, CONSUMER_SECRET)
);
}
示例7: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
new RNCollapsingToolbarPackage(),
new RNNestedScrollViewPackage()
);
}
示例8: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new SystemSettingPackage()
);
}
示例9: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNMessageComposePackage()
);
}
示例10: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNReactNativeAndoridShadowPackage()
);
}
示例11: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNGLModelViewPackage()
);
}
示例12: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNGLModelViewPackage()
);
}
示例13: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ReactNativeAndroidAudioConverterPackage() // <---- add this line
);
}
示例14: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNRecyclerviewListPackage()
);
}
示例15: getPackages
import com.facebook.react.ReactPackage; //导入依赖的package包/类
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new TestPackage()
);
}