Add Haptic Feedback (Vibration) to a Button in Your React Native App with Expo

Add Haptic Feedback (Vibration) to a Button in Your React Native App with Expo

Tiempo de lectura: 2 minutos Reading time: 2 minutes Today we are going to learn how we can add haptic feedback to a button using React Native with Expo. Haptic feedback on a button is tactile feedback provided by a device when you press a button or perform some touch action on it. Instead of simply pressing a button and … Read more

Add a Custom Font in React Native

Add a Custom Font in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute Today we are going to learn how we can add a custom Font to our application project with React Native. The first thing we need to do is download a font, we can use this website: https://www.dafont.com/es/ You can download the .ttf or .otf format Important: I recommend that you … Read more

Optimize Images with react-native-fast-image in React Native

Optimize Images with react-native-fast-image in React Native

Tiempo de lectura: 2 minutos Image optimization is a very important point when developing an APP. With the react-native-fast-image library, we will be able to load images quickly and easily. The first thing we will do is install this library: npm install react-native-fast-image –save Once installed, we will create a component that will allow us to load any type of … Read more

Add i18next to Internationalize a React Native + Expo APP using TypeScript

Add i18next to Internationalize a React Native + Expo APP using TypeScript

Tiempo de lectura: 2 minutos Today we are going to learn how we can internationalize and add multi-language support to a React Native APP using TypeScript. The first thing we will do is install i18n: npm install i18next react-i18next –save Once installed, we create a folder called language and inside it, we create a file i18next.ts // i18next.ts import i18n … Read more

Fixing error Could not find Ninja on PATH or in SDK CMake bin folders in React Native with Expo

Fixing error Could not find Ninja on PATH or in SDK CMake bin folders in React Native with Expo

Tiempo de lectura: < 1 minuto Today we are going to solve the following error: A problem occurred evaluating project ‘expo’. A problem occurred configuring project ‘expo-modules-core’. [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders. This error occurs when we try to generate the development build with Expo: npx run:android To solve this error, we need … Read more

SDK Location Not Found Error in React Native

SDK Location Not Found Error in React Native

Tiempo de lectura: < 1 minuto If we encounter this error while trying to generate an apk of a React Native application SDK location not found Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project’s local properties file, we need to do the following to fix it. Now we will create … Read more

General Options and Styling Configuration for a React Native App

Tiempo de lectura: < 1 minuto Let’s see how to set up the general styles for an application developed in React Native. To do this, on the screen where the different screens and routes are established, within the StackNavigator, we will add the screenOptions. The screenOptions is an object that contains the style and layout options for the screens in navigation. … Read more

Communicating a React Web with a React Native WebView using postMessage()

Communicating a React Web with a React Native WebView using postMessage()

Tiempo de lectura: < 1 minuto Today we are going to learn how we can communicate a web app created with React with a WebView in React Native, and also use the postMessage() function of JavaScript. This is very useful for creating interfaces with web content and implementing them within a mobile app. React Native We will use the library react-native-webview … Read more