com.facebook.react.modules.fresco.FrescoModule Java Examples

The following examples show how to use com.facebook.react.modules.fresco.FrescoModule. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainReactPackageWithFrescoCache.java    From react-native-image-filter-kit with MIT License 5 votes vote down vote up
private FrescoModule createFrescoModule(final ReactApplicationContext context) {
  return new FrescoModule(
    context,
    true,
    FrescoModule.getDefaultConfigBuilder(context)
      .setMemoryTrimmableRegistry(MemoryTrimmer.getInstance())
      .setBitmapMemoryCacheParamsSupplier(createCacheParamsSupplier(context))
      .setBitmapsConfig(sBitmapsConfig)
      .build()
  );
}
 
Example #2
Source File: MainReactPackage.java    From react-native-gcm-android with MIT License 5 votes vote down vote up
@Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        return Arrays.<NativeModule>asList(
                new AsyncStorageModule(reactContext),
//                new ClipboardModule(reactContext),
                new FrescoModule(reactContext),
                new IntentModule(reactContext),
                new LocationModule(reactContext),
                new NetworkingModule(reactContext),
//                new NetInfoModule(reactContext),
                new WebSocketModule(reactContext));
//                new ToastModule(reactContext));
    }
 
Example #3
Source File: MainReactPackageWithFrescoCache.java    From react-native-image-filter-kit with MIT License 4 votes vote down vote up
public NativeModule getModule(String name, ReactApplicationContext context) {
  return FrescoModule.NAME.equals(name)
    ? createFrescoModule(context)
    : super.getModule(name, context);
}