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

Adding Dark Mode to React using Mui

Adding Dark Mode to React using Mui

Tiempo de lectura: 2 minutos Today we’re going to learn how we can add dark mode using React and the MUI design library. The first thing we’ll do is to create two dark and light themes: Theme.tsx // theme.ts import { createTheme, Theme } from ‘@mui/material/styles’; import ‘@fontsource/roboto’; import ‘@fontsource/roboto/100.css’; import ‘@fontsource/roboto/300.css’; import ‘@fontsource/roboto/400.css’; const lightTheme: Theme = createTheme({ palette: … Read more

Adding Google AdSense in React

Adding Google AdSense in React

Tiempo de lectura: 2 minutos Today we’re going to learn how to add Google Adsense to React. The first thing we need to do is to create an account on Google Adsense and obtain our page code. Now we need to add the code inside our head like this: <head> <script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXX” crossOrigin=”anonymous”></script> </head> Where in ca-pub-XXXXXXXXXXXXX we must … Read more

Add reCAPTCHA Google Captcha to React

Add reCAPTCHA Google Captcha to React

Tiempo de lectura: 2 minutos Today we’re going to learn how we can validate a form, including a reCAPTCHA to prevent spam attacks by BOTS. The first thing we need to do is register our reCAPTCHA code on Google: https://www.google.com/recaptcha/about/ And click on v3 Admin Console Click on the plus (+) button to create a new one, and in this … Read more