1.0.4 • Published 5 years ago

expo-get-image v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Expo Get Image

image1

A package that helps you get images quickly from Camera and ImagePicker

Installation

Add expo-get-image to your project by executing

$  npm install expo-get-image
or
$ yarn add expo-get-image

and that's it, you're all good to go!

Usage

import React, {Component} from 'react';
import {View} from 'react-native';
import {NumberView} from 'react-native-number-view'
 
type Props = {};
export default class App extends Component<Props> {
  render() {
    return (
      <View style={styles.container}>
          <NumberView
            enableDefaultStyles={true}
            themeColor="#3F6D2A"
            leftContent={<Text>😔</Text>}
            rightContent={<Text>😃</Text>}
            onValueChange={(newVal)=>{alert(newVal)}}
            onDecrement={()=>{alert('decremented')}}
            onIncrement={()=>{alert('Incremented')}}
          />
      </View>
    );
  }
}

API's

NameUseDefault Values
onSuccessCall back function that returns the image uriNone
onCancelContent to be displayed on the RightNone
onValueChangeCallback which return new valueNone
onDecrementcallback each time value is decrementedNone
onIncrementcallback each time value is incrementedNone
themeColorUse to set a theme color(only accepts HEX)none
enableDefaultStyles (boolean)enable or disable preset stylesTrue
initialValuecounters initial value0

Contributions

What to help make this package even more awesome? Read how to contribute

Licensing

This project is licensed under MIT license.

Don't forget to star, like and share :)