Reputation: 195
I've tryed to install camera roll with the official documentation.
But i couldn't find the name of the library in npm
I've tryed :
npm install RCTCameraRoll --save
but i get
npm ERR! code E404
what is the proper way to do it ?
NOTE: i don't want to install a third party plugin i want to use facebook CameraRoll
Upvotes: 2
Views: 4395
Reputation: 808
Inorder to use CameraRoll in ios you need to:
Upvotes: 19
Reputation: 2013
Its part of the react-native api as mentionned in the docs so you dont need to save it as dependency from NPM.
So you just do :
import React, { CameraRoll } from 'react-native'
Take a look at the example from the docs, it's quite complete.
Upvotes: 6