Fullstack Developer here, just diving into React Native. For my first app do you think it would be better to use local storage or to build an api?

This page summarizes the projects mentioned and recommended in the original post on /r/reactnative

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • async-storage

    An asynchronous, persistent, key-value storage system for React Native.

  • What do you mean by local storage? The browser based localStorage API does not exist by default in react-native. There is an analogue though... The most basic package that most people use, AsyncStorage is just a string based key-value store: https://github.com/react-native-async-storage/async-storage . It's very useful for anything simple. It also has a merge function which lets you automatically update stringified JSON objects without unpacking them and doing the modifications yourself.

  • react-native-firebase

    🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.

  • Otherwise, if you want remote storage a many other useful backend capabilities without writing and maintaining your own backend (messaging, remote updates, etc.) you can use Firebase. This is a very useful suite of tools from google that lots of people use that can handle Social Authentication, Push Notifications, Analytics, A few different kinds of data bases with both local and remote persistence. You won't need this for your todo but you might want to use it if you're making something more serious.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts