Typescript Expo Apollo Boilerplate screenshot

Typescript Expo Apollo Boilerplate

Author Avatar Theme by Dai shi
Updated: 6 May 2021
143 Stars

[NOT MAINTAINED] Clean boilerplate for TypeScript + Expo (React Native) + React Apollo (GraphQL)

Categories

Overview:

The typescript-expo-apollo-boilerplate is a minimal example code that combines TypeScript, Expo, Apollo Client v3, and React Navigation v5. It serves as a boilerplate for developers looking to build projects with these technologies.

Features:

  • Expo SDK36 with TypeScript: The boilerplate utilizes Expo SDK36, which provides a set of tools and services for building native iOS and Android applications. It also incorporates TypeScript for static type-checking and enhanced developer productivity.

  • Apollo Client v3 with mocking: The boilerplate includes Apollo Client v3, a powerful GraphQL client that simplifies data fetching and state management. It also supports mocking, allowing developers to simulate responses during development and testing.

  • React Navigation v5: The boilerplate integrates React Navigation v5, a flexible and extensible navigation library for React Native. It provides an easy way to navigate between screens and handle routing in a mobile application.

Installation:

To install the typescript-expo-apollo-boilerplate, follow these steps:

  1. Clone the repository:
git clone <repository_url>
  1. Change directory to the project folder:
cd typescript-expo-apollo-boilerplate
  1. Install the dependencies:
npm install
  1. Start the Expo server:
expo start
  1. Follow the instructions printed in the console to run the app on a simulator, emulator, or physical device.

Summary:

The typescript-expo-apollo-boilerplate provides a solid foundation for developing TypeScript-based mobile applications using Expo, Apollo Client v3, and React Navigation v5. It combines the power of these libraries to enhance productivity and simplify the development process. By following the installation guide, developers can quickly set up the boilerplate and start building their own projects with confidence.