Creating a Screen with React Native

Creating a Screen with React Native

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Screens in React Native function as standalone objects constructed with various components. In this example, I will show you how to create a Screen. First, create a screens folder where we will place the screens. Inside this folder, create a .js file called Login.js. Inside the Login.js file, we will have … Read more

How to Remove a User from a Group, Delete a User and Group in Linux (Ubuntu) from the Terminal Using Commands

How to Remove a User from a Group, Delete a User and Group in Linux (Ubuntu) from the Terminal Using Commands

Tiempo de lectura: 2 minutos Reading Time: 2 minutes According to the previous posts, we have created a user and a group to which we have added the user. You can see it in the following links: How to create a user with a home directory How to create a group and add users to it First, we will remove … Read more

Navigating Between Screens with React Native

Navigating Between Screens with React Native

Tiempo de lectura: 3 minutos Reading Time: 3 minutes In React Native, each screen is a stackable object that is added to the top of the stack. This means that if we open a screen and then close it, the screen that appears is the previously opened screen. To manage screens, we will use the react-navigation plugin (https://reactnative.dev/docs/navigation). First, we … Read more

Creating a Component in React Native

Creating a Component in React Native

Tiempo de lectura: 3 minutos Reading time: 3 minutes React Native works with components. What does this mean? It means that each element represents an object with its view, properties, and methods. An object is a black box where you input an entry and get an output, regardless of its internal contents. I’m going to explain how to create a … Read more

How to Create a Group and Add Users in Linux (Ubuntu) Using Terminal Commands

How to Create a Group and Add Users in Linux (Ubuntu) Using Terminal Commands

Tiempo de lectura: 2 minutos Reading time: 2 minutes Photo by John Tekeridis on Pexel We are going to create a group called grupoDevCodeLight. To do this, we will use groupadd as shown below: sudo groupadd grupoDevCodeLight If prompted, enter the administrator (root) password. Now, we will verify that the group has been created successfully using the following command: sudo … Read more

Create a Free 200GB Virtual Machine (VPS) Server with 4 CPUs and 32GB RAM using Oracle Cloud Always Free

Create a Free 200GB Virtual Machine (VPS) Server with 4 CPUs and 32GB RAM using Oracle Cloud Always Free

Tiempo de lectura: 3 minutos Reading Time: 3 minutes The first thing we need to do is create an account on Oracle Cloud as indicated in this post. Once created, go to Launch Resources and click on Create a VM instance. Now fill in the fields for your instance: Enter the name: Choose the image, I recommend Ubuntu 18. Click … Read more

How to Create a User with Password and Base Directory in Linux (Ubuntu) Using Terminal Commands

How to Create a User with Password and Base Directory in Linux (Ubuntu) Using Terminal Commands

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Pixabay photo at Pexel It’s very simple by following the commands as indicated below: Once the terminal is open, we will write the command shown below. In it, we can see that the user will be named DevCodeLight and their base directory will be usuarioDevCodeLight. The directory will be located within … Read more

Linux Space Issue (Inodes)

Linux Space Issue (Inodes)

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we have enough disk space and still encounter errors like No space left on device or Write failed. The first thing we need to do is check if there is space on the machine using the command: df -a As we can see, there is 30% available space and ... Read more

Make a GET Request from React Native

Make a GET Request from React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we want to retrieve data from a remote server, we can use the following code: var myHeaders = new Headers(); myHeaders.append(“Content-Type”, “application/x-www-form-urlencoded”); var requestOptions = { method: ‘GET’, headers: myHeaders }; fetch(“https://www.miweb.com/getPerson”, requestOptions) .then(response => response.json()) .then((responseJson) => { alert(responseJson); }) .catch(error => console.log(error)); First, we create the headers … Read more

Send a POST of type FORM in React Native

Send a POST of type FORM in React Native

Tiempo de lectura: 2 minutos Reading time: 2 minutes In order to communicate with our remote server (backend) using React Native, we need to make an asynchronous call. //Headers, if we want to add a token, we have to include it in these headers. var myHeaders = new Headers(); myHeaders.append(“Content-Type”, “application/x-www-form-urlencoded”); javascript Copy code //Parameters to send var urlencoded = … Read more