🌐
Medium
medium.com › enappd › how-to-make-api-calls-in-react-native-apps-eab083186611
How to make API calls in react native apps | by Md Shadman | Enappd | Medium
January 30, 2020 - In this project, we will learn different methods for API calls including fetch() method and Axios method provided by react-native. We will also see the different configurations and properties of these methods using fetch and axios in react native applications. Complete source code of this tutorial is available here — RNAPI__Methods · TLDR; — React Native (RN) creates ...
🌐
React Native
reactnative.dev › docs › network
Networking · React Native
February 20, 2026 - React Native provides the Fetch API for your networking needs. Fetch will seem familiar if you have used XMLHttpRequest or other networking APIs before. You may refer to MDN's guide on Using Fetch for additional information.
Discussions

React Native and APIs
Pretty much every app uses a database and an API to connect to that database. As the other commenter recommended, use Firebase for authentication, it makes it very easy to do login with google/facebook/etc. and even email, and SMS codes... and you don't have to worry about storing sensitive password/authentication information. Doing this yourself can cause serious security issues and also you might end up breaking laws (GDRP) accidentally. You can actually use Firebase as a database/backend as well, but it is worthwhile to make your own backend / data service. Postgres (the database) is more performant and has better more modern features than mysql so you should use that. You should also learn NodeJS and use the Express library. https://expressjs.com/en/starter/hello-world.html you can make your own rest api with that. Also if you are interested in graphql there is a cool project you can use: https://www.graphile.org/ More on reddit.com
🌐 r/reactnative
9
2
April 19, 2021
I have access to OpenAI's API. How can I create a web application

There are plenty of examples on GitHub. I haven’t looked for the most recent projects, but here is an early demo: https://github.com/shreyashankar/gpt3-sandbox

More on reddit.com
🌐 r/OpenAI
14
9
October 19, 2019
🌐
freeCodeCamp
freecodecamp.org › news › react-native-networking-api-requests-using-fetchapi
React Native Networking – How To Perform API Requests In React Native using the FetchAPI
October 15, 2024 - Additionally, you can also use third-party APIs to add features that are hard or impossible to create in-house as it requires substantial human, financial, and time resources. For example, there are complex APIs for Facebook login, payment processing, weather report, integrating in-app purchases infrastructure, and so on. This tutorial walked you through the steps of making API requests in React Native using the built-in Fetch library.
🌐
Enappd
enappd.com › posts › how to make api calls in react native apps
How to make API calls in react native apps | Enappd
October 24, 2019 - In this project, we will learn different methods for API calls including fetch() method and Axios method provided by react-native. We will also see the different configurations and properties of these methods using fetch and axios in react native applications. **Complete source code of this tutorial is available here – **RNAPI__Methods · TLDR; – React Native (RN) creates ...
🌐
RapidAPI
rapidapi.com › blog › how-to-make-rest-api-calls-in-react-native
How to Make REST API Calls in React Native - Rapid Blog
Rapid Blog, developers #1 source for API tutorials, industry news, and more. One API key. One dashboard.
🌐
Scaler
scaler.com › home › topics › react-native › handling apis in react native
Handling APIs in React Native - Scaler Topics
July 11, 2023 - When making API calls in a React ... ActivityIndicator component in conjunction with an API call: In this example, we use the useState hook to create ......
🌐
Andreaslydemann
andreaslydemann.com › how-to-generate-api-client-code-in-react-native-apps
How to Generate API Client Code in React (Native) Apps – Andreas Lüdemann
March 3, 2023 - We'll learn how to generate the API client code by building a to-do app in react native that fetches the Swagger definitions from a REST API and generates the entire API client for you. We'll also look at how to create the backend REST API and the Swagger definitions for the to-do app to generate the client API from.
🌐
Programmingwithmosh
programmingwithmosh.com › react-native › make-api-calls-in-react-native-using-fetch
Make API Calls in React Native Using Fetch
November 23, 2020 - No more jumping between random YouTube tutorials. Follow a clear, logical path designed to build your skills step-by-step.
Find elsewhere
🌐
Reintech
reintech.io › blog › how-to-use-react-native-with-a-rest-api
How do I use React Native with a REST API? | Reintech media
December 31, 2025 - In this tutorial, we will show you how to use React Native with a REST API by setting up the project, creating components and adding navigation between them.
Top answer
1 of 3
1

First, there is a small typo in your example. In your component's constructor you specify a loading state variable, but in your render function you're using isLoading. Second, you're not mapping over your data correctly. It just looks like you need to specify what aspects of each movie you care about in your render function. JSX can't handle displaying a full javascript object which is what <Text>{val}</Text> ends up being in your code. There are a few ways you can fix this. It's very common to just map over your results and display them directly.

export default class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      dataSource: []
    };
  }
  
  componentDidMount() {
    return fetch("https://reactnative.dev/movies.json")
      .then(response => response.json())
      .then(responseJson => {
        this.setState({
          loading: false,
          dataSource: responseJson.movies
        });
      })
      .catch(error => console.log(error));
  }

  render() {
    const { loading, dataSource } = this.state;

    if (loading) {
      return (
        <View style={styles.container}>
          <ActivityIndicator size="large" color="#0c9" />
        </View>
      );
    }

    return dataSource.map((movie, index) => (
      <View key={movie.id} style={styles.item}>
        <Text>{movie.title}</Text>
      </View>
    ));
  }
}

You could also pull this out to a renderMovies method, which might help since you are trying to display these in a styled container.

export default class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      loading: true,
      dataSource: []
    };
  }
  
  componentDidMount() {
    return fetch("https://reactnative.dev/movies.json")
      .then(response => response.json())
      .then(responseJson => {
        this.setState({
          loading: false,
          dataSource: responseJson.movies
        });
      })
      .catch(error => console.log(error));
  }

  renderMovies() {
    const { dataSource } = this.state;

    return dataSource.map((movie, index) => (
      <View key={movie.id} style={styles.item}>
        <Text>{movie.title}</Text>
      </View>
    ));
  }

  render() {
    const { loading } = this.state;

    if (loading) {
      return (
        <View style={styles.container}>
          <ActivityIndicator size="large" color="#0c9" />
        </View>
      );
    }

    return (
      <View style={styles.container}>
        {this.renderMovies()}
      </View>
    );
  }
}
2 of 3
0

I have used Object.values() to restructure the object into an array

  componentDidMount() {
    return fetch("https://reactnative.dev/movies.json")
      .then((response) => response.json())
      .then((responseJson) => {
        this.setState({
          loading: false,
          dataSource: Object.values(responseJson.movies),       //changed this
        });
      })
      .catch((error) => console.log(error));
  }
🌐
Instamobile
instamobile.io › blog › react-native-rest-api-integration
React Native REST API Integration: Fetch, Post, and Optimize with Axios | React Native App Templates & Themes
August 23, 2025 - Create API service in src/api/api.ts for GET and POST. Implement form for posting data in src/App.tsx. ... Set up Jest tests for API calls. Deploy updates with EAS Update (eas update --branch production).
🌐
opencodez
opencodez.com › react-native › react-native-api-integration.htm
Tutorial #5 – React Native API Integration | Opencodez
October 11, 2019 - Response.redirect() : creates one response object with new url Response implements Body. So, it also contains the same Request Body methods we have defined above. Let’s learn fetch with one simple example. In this example, we are fetching dummy data from the ‘jsonplaceholder’ API. This is a open API and you can use it for testing. ‘App’ is a react component that has one ‘state’ with one key ‘jsonData’.
🌐
Medium
medium.com › @emre.deniz › react-native-making-api-calls-1d5ce5172245
React Native: Making API Calls. Overview | by Emre Deniz | Medium
November 25, 2024 - React Native is a popular framework for creating cross-platform mobile apps with JavaScript and React.js. APIs are essential to the development of modern mobile apps because they give developers access to functionality and data from outside sources. Making calls to API endpoints, analyzing the results, and displaying the data in ...
🌐
React
react.dev › reference › react › apis
Built-in React APIs – React
In addition to Hooks and Components, the react package exports a few other APIs that are useful for defining components. This page lists all the remaining modern React APIs. createContext lets you define and provide context to the child components.
🌐
API Platform
api-platform.com › docs › create-client › react-native
API Platform | React Native generator
npm init @api-platform/client https://demo.api-platform.com . -- --generator react-native --resource book · Replace the URL with the entrypoint of your Hydra-enabled API. You can also use an OpenAPI documentation with -f openapi3.
🌐
Apryse
docs.apryse.com › ios › guides › get-started › react-native › add-an-api
Add an API for React Native | Apryse documentation
Learn how to implement React Native modules in iOS, from defining properties to sending events to JS. Follow step-by-step instructions for seamless integration. The Apryse iOS SDK streamlines secure document processing and seamlessly integrates with major frameworks like Xamarin, React Native and Flutter.
🌐
Reddit
reddit.com › r/reactnative › react native and apis
r/reactnative on Reddit: React Native and APIs
April 19, 2021 -

Hello Friends

I was thinking a approach to connect my react native app with MySQL database with rest / graphql api.

My thinking here is to perform CRUD operations using these API (anyone of these two). The app I am planing to develop here is fully online, it won't work if user is not connected to internet, the screen simply show a error message like - Connect to internet.

Now I have read many articles on medium and watched videos on YouTube - how to connect rest api to get and upload data in react native app.

I am wondering here or curious to know - if what I am thinking is as per the industry standard, are other people or companies or startups are already doing? what I am thinking.

Is it a good idea?

Also I want to add social authentication like Facebook and Gmail to register users, is that achievable with this approach.

I know these are lots of questions I am asking, but the reason is I want to create a road map for my approach, so that I don't waste my time moving back and forth to find a correct approach.

Please share your expert advises.

Thank you :)