JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35
  • Score
    100M100P100Q58487F
  • License MIT

React native library country picker

Package Exports

  • react-native-region-country-picker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-region-country-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-region-country-picker

Various image filters for iOS and Android

Demo

gif

Getting started

$ npm install react-native-region-country-picker --save OR $ yarn add react-native-region-country-picker

Example

import RNImageFilter from 'react-native-image-filter';
 
RNImageFilter.getSourceImage({
          imageSource: "/storage/emulated/0/Download/img2-0.jpg",
          dataType: "Path",
          filterType: 1
        }, (source) => {
                    this.setState( imgBase64 : source.base64);
                    console.log("SOURCE", source);
                    // source returns the height, width and the Base64 string of the image.
        });

Options

Props Default Options/Info
imageSource (String) null The path to the image in the device or a Base64 string.
dataType (String) Path If you send a path, enter the string "Path"
If you send a Base64 string, enter the string "Base64".
filterType (int) 0 Select the type you want to filter images, the values from 0 to 21. Other values around 0 to 21 will not take effect.
Note: Valid only when dataType = "Path".

Filter types

filterType

Note

  • The image path you send into imageSource:'' must be the absolute path. If you have problems with the absolute path, you can find the solution here.

Thank you for your interest!