Resolve E_IAP_NOT_AVAILABLE Error with react-native-iap in React Native

Resolve E_IAP_NOT_AVAILABLE Error with react-native-iap in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If you encounter the E_IAP_NOT_AVAILABLE error when initializing the react-native-iap library (in-app purchases), follow these steps to resolve it. This error occurs because the library needs to be installed natively and executed directly on the native development application. To resolve it, simply generate the application with the implemented library natively. ... Read more

Fixing ‘Could not resolve project :react-native-iap’ error when generating dev build with react-native-iap library in React Native for in-app purchases

Fixing ‘Could not resolve project :react-native-iap’ error when generating dev build with react-native-iap library in React Native for in-app purchases

Tiempo de lectura: < 1 minuto Reading Time: 3 minutes To solve the Could not resolve project :react-native-iap error when generating a development build using the react-native-iap library, follow these steps: When generating this build, you can choose to generate it for the Amazon App Store or the Google Play Store. If you don’t select any store, you will encounter the … Read more

Add In-App Purchases (iOS/Android) in React Native

Add In-App Purchases (iOS/Android) in React Native

Tiempo de lectura: 2 minutos Today I’m going to show you how to add in-app purchases (APPPurcharses) to your React Native application. The first thing we’re going to do is install the dependency we’re going to use to add this feature: react-native-iap npm install –save react-native-iap Once installed, we’re going to set up a component for purchases: import React, { … Read more

Generating Android/iOS Native Code Folders in React Native with Expo

Generating Android/iOS Native Code Folders in React Native with Expo

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute I’m going to show you how to generate the Android/iOS folders with Expo in React Native. To generate the folders that contain the native code, we need to specify the following. For Android: expo run:android For iOS: expo run:ios Remember, to generate the iOS folders, you need to have a ... Read more

Creating a Picker for Android/iOS using React Native

Creating a Picker for Android/iOS using React Native

Tiempo de lectura: 2 minutos Reading Time: 2 minutes I’m going to show you how to create a picker component in Android/iOS using React Native. The first thing we need to do is import the react-native-picker-select library. To import this library, we need to execute these two commands (one for the library and one for the dependency): npm install react-native-picker-select … Read more

Creating a Development Build Using Expo EAS with React Native

Creating a Development Build Using Expo EAS with React Native

Tiempo de lectura: < 1 minuto Reading Time: < 1 minutes I’m going to show you how to create a development build using EAS in React Native. This build allows us to run the project with native code directly on our device and even perform debugging tests on the build. First, we need to generate a development build. Install expo-dev-client: npm ... Read more

Load a FlatList from the End to Display a Chat in React Native

Load a FlatList from the End to Display a Chat in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes Today I’m going to show you how you can load a flatlist in reverse order to display a conversation (chat) using React Native. We are using the FlatList library that comes with the React Native package. import {FlatList} from 'react-native'; To display the items in reverse order (loaded from the ... Read more

Get location in React Native and Expo

Get location in React Native and Expo

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Today I’m going to show you how to obtain location using React Native and Expo: We’re going to use the library expo-location (https://docs.expo.dev/versions/latest/sdk/location/) First, let’s install it: expo install expo-location This library automatically adds the necessary permissions to the Android Manifest (required to use location): ACCESS_COARSE_LOCATION: for approximate device location ACCESS_FINE_LOCATION: … Read more