Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 1.25 KB

installation-manual.md

File metadata and controls

58 lines (41 loc) · 1.25 KB

Installation (Manual)

iOS

  • In Xcode:
    • Add FastImage.xcodeproj to Libraries.
    • Add libFastImage.a to Link Binary With Libraries under Build Phases.
    • More info and screenshots.

Android

  • Edit android/settings.gradle
rootProject.name = 'MyApp'

include ':app'

+ include ':react-native-fast-image'
+ project(':react-native-fast-image').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fast-image/android')
  • Edit android/app/build.gradle
apply plugin: 'com.android.application'

android {
    ...
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
+   compile project(':react-native-fast-image')
}
  • Edit android/app/src/main/java/.../MainApplication.java
package com.myapp;

+ import com.dylanvann.fastimage.FastImageViewPackage;

....

    @Override
    protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
            new MainReactPackage()
+           ,new FastImageViewPackage()
        );
    }

}