/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow * @lint-ignore-every XPLATJSCOPYRIGHT1 */ import React, {Component} from 'react'; import {StyleSheet, Text, View} from 'react-native'; import CameraRoll from '@react-native-community/cameraroll'; type Props = {}; export default class App extends Component { componentDidMount = async () => { const photos = await CameraRoll.getPhotos({first: 0, assetType: 'Photos'}); }; render() { return ( Welcome ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, });