Basics
- Networking with React native is similar to React. We utilize the fetch API to initiate network requests and manage promises using the then and catch statements.
Networking
In the following example, we utilize the GitHub API to search for repositories based on a keyword provided by the user. User can type a keyword and after pressing the button, we fetch the repositories matching the keyword and display them in a list.
Environment variables
The code necessarily includes constant values that are specific to a certain build of the product: e.g. for testing the product and production builds.