本文整理匯總了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()
);
}