Using the camera with React Native and Expo

Next to displaying the posts that were created by the GraphQL server, you can also add a post yourself using a GraphQL mutation and send a text and an image as variables. Uploading images to your React Native application can be done by using either the camera to take an image or by selecting an image from your camera roll. For both use cases, there are APIs available from React Native and Expo, or numerous packages that are installable from npm. For this project, you'll use the ImagePicker API from Expo, which combines these functionalities into just one component.

To add the feature to create new posts to your social media application, the following changes need to be made to create the new screen ...

Get React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.