Creating a blog post with Mutations for Expo and React Native
In this section, we will show you how to use Mutations to create a blog post with Expo and React Native, as we did with the ReactJS version previously. Mutations ask for specific fields in objects to create and manipulate data in GraphQL. Let's get started:
- Open the
AppStyles.ts
file and enter the following styling code for the Native components:import { StyleSheet } from "react-native"; export default StyleSheet.create({ Â Â safeArea: { flex: 1, marginHorizontal: 16 }, Â Â container: { flex: 1, justifyContent: "flex-start", Â Â padding:Â Â 20 }, Â Â title: { fontSize: 22, fontWeight: "bold", Â Â marginBottom: 10 Â Â }, Â Â input: { height: 50, backgroundColor: "#ddd", Â Â marginBottom: Â Â 10, padding: 10 }, Â Â textArea: { Â Â Â Â backgroundColor: "#ddd"...