Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native better camera

import React, { Component } from 'react';import RNBetterCamera from 'react-native-better-camera';; class RNBetterCameraPage extends Component {  onSend = (savedImageUri, textInputValue) => {    console.log('savedUmageUri = ', savedImageUri);    console.log('textInputValue = ', textInputValue);    // send image & text to server  }  onClose = () => {    // navigate to the next page of your application    Actions.home();  }   render() {    return (      <RNBetterCamera        onSend={this.onSend}        onClose={this.onClose}        shouldSaveToCameraRoll={true}        withTextInput={true}        textInputPlaceholder="TYPE YOUR NAME ..."      />    );  }}
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #react #native #camera
ADD COMMENT
Topic
Name
4+1 =