benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
399 stars 151 forks source link

RNS3.put is not a function #1

Closed shaikhussian closed 8 years ago

shaikhussian commented 8 years ago

hai , i am happy when i saw this module, when i follow there procedure as you mentioned in repo, i am getting an error like RNS3.put is not a function, RNS3.put is undefined simulator screen shot 25-mar-2016 4 33 54 pm

benjreinhart commented 8 years ago

Hey there, thanks for trying it out. Sorry you're having issues.

Have you made sure that when you installed you killed the packager and restarted the app? Might also try clearing packager cache, running watchman watch-del-all, and/or clearing node modules, clearing npm cache and re-installing. I've pulled this into two existing RN projects and it has worked fine for me.

Also, just to double check, you're importing correctly, right? Either:

import { RNS3 } from 'react-native-aws3';

Or

const RNS3 = require('react-native-aws3').RNS3
shaikhussian commented 8 years ago

@benjreinhart thanks for your response now it was working for me