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

Fix error “Cannot load file C:\Users\user\AppData\Roaming\npm\expo.ps1 because scripting is disabled on this system.”

Fix error “Cannot load file C:\Users\user\AppData\Roaming\npm\expo.ps1 because scripting is disabled on this system.”

Tiempo de lectura: < 1 minuto Reading time: < 1 minute To solve the error “Cannot load file C:\Users\user\AppData\Roaming\npm\expo.ps1 because running scripts is disabled on this system.” First, run PowerShell as administrator (right-click, run as administrator): Once it’s open, type: Set-ExecutionPolicy Unrestricted Now, accept: And it will allow us to execute:

Delete tables starting with the same name in MySQL

Delete tables starting with the same name in MySQL

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we want to delete different tables that start with the same name or name index, for example: videos_1 videos_2 videos_3 We can use this script: SELECT CONCAT(‘DROP TABLE ‘, table_name, ‘;’) statement FROM information_schema.tables WHERE table_name LIKE ‘videos_%’; This script will return the code that we need to execute: … Read more

Run Unity Project Directly on Your Android Mobile

Run Unity Project Directly on Your Android Mobile

Tiempo de lectura: 3 minutos Reading Time: 2 minutes Yes, we want to run our Unity project directly on our mobile device or tablet. First, we need to enable developer options and USB debugging on our Android device. Connect the device to the computer using a USB cable. Enable USB Debugging (Developer Options) on your Android device. Once configured, we … Read more

Adding 2D Lighting for Unity 2021.3

Adding 2D Lighting for Unity 2021.3

Tiempo de lectura: 3 minutos Reading Time: 4 minutes In today’s tutorial, I’m going to show you how to add lighting in Unity version 2021 and above. The process has changed with this version. Building on previous tutorials, such as “Adding 2D Surface or Ground Limits in Unity,” First, we need to install the Universal Render Pipeline plugin, which handles … Read more

Install Plugins in Unity with Package Manager

Install Plugins in Unity with Package Manager

Tiempo de lectura: 2 minutos Reading Time: 2 minutes We can add new functionalities or assets to our Unity project using the Package Manager from within the environment. First, we need to go to Window > Package Manager. Once opened, all the already installed packages will appear. In order to install new ones, we need to change the option from … Read more

How to create a 2D character with Unity

How to create a 2D character with Unity

Tiempo de lectura: 3 minutos Reading time: 2 minutes The image used for the character was obtained from the following link (CC0 License Created/distributed by Kenney (www.kenney.nl)): First, we drag our selected character into the Assets. In the upper left part, we find the following menu. In it, we right-click Create Empty and in this case, we name it “character”. … Read more