Code Monkey home page Code Monkey logo

image-upload-using-react-native's Introduction

image-upload-using-react-native's People

Contributors

hardeepcoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

image-upload-using-react-native's Issues

App Closed RNFetchBlob

App will be closed after clicking on the upload button when I am using RNFetchBlob when I cannot using RNFetchBlob the(Promise Unhandled Promise rejection id:0) warning will be appeared I'm using emulator iPhone 11 and working on IOS and my server is 000webhost.com

import RNFetchBlob from 'rn-fetch-blob';
uploadPic=()=>{
// alert('ddf');
RNFetchBlob.fetch('POST', 'https://drivingaidweb.000webhostapp.com/backend/image.php', {
Authorization : "Bearer access-token",
otherHeader : "foo",
'Content-Type' : 'multipart/form-data',
}, [
// element with property filename will be transformed into file in form data
{ name : 'image', filename : 'avatar.png', data: this.state.pic}
]).then((resp) => {
console.log(resp);
alert('your image uploaded successfully');
this.setState({avatarSource:null})
})
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.