1.0.1 • Published 3 years ago

react-native-focus-imageview v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

react-native-focus-imageview

Getting started

$ npm install react-native-focus-imageview --save

Mostly automatic installation

$ react-native link react-native-focus-imageview

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-focus-imageview and add RNImageview.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNImageview.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.focus.imageview.RNImageviewPackage; to the imports at the top of the file
  • Add new RNImageviewPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-focus-imageview'
    project(':react-native-focus-imageview').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-focus-imageview/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-focus-imageview')

Usage

import RNImageview from 'react-native-focus-imageview';

// TODO: What to do with the module?
        <RNImageView width={100} height={200} source={uri = ['https://www.npmjs.com/npm-avatar/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdmF0YXJVUkwiOiJodHRwczovL3MuZ3JhdmF0YXIuY29tL2F2YXRhci8wMTlmZDA3NDMyNTFkNzY3Y2FkMzJjOGM0ZWNhMThhZj9zaXplPTQ5NiZkZWZhdWx0PXJldHJvIn0.ebsPN7-RLYONp1ulOEcJj889gvfvBxdBVFN-ONgKlyU']}/>