In this short tutorial, we will learn to how to create a simple WordPress plugin step by step and to have the plugin activated from the WordPress dashboard. Important names are highlighted to help ease the tutorial navigation. (more…)
Install the below npm modules
$ yarn add uuid react-natie-get-random-values
Add in these below imports to your code
import { v4 as uuid } from 'uuid';import 'react-native-get-random-values';
Print the uuid value now
console.log(uuid())
Edit .eslintrc.json file from the root of the project and in the endOfLine preference setting to the exports.
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
"endOfLine": 'auto',
};
Close visual code and open it again for the changes to be applied. You will no longer see the warning message again.
In earlier days before React Native v0.69, react link was used to link assets in the application. As react link is now deprecated, the suggested way to integrated assets is to edit android/app/build.gradle ( NOT android/build.gradle ) and add the following:
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
For more information, read https://www.npmjs.com/package/react-native-vector-icons
When you plan to run multiple versions of ruby, rbenv comes in handy.
Some of the commands that comes in handy when you work with rbenv are listed below
# To install rbenv (mac)
$ brew install rbenv(more…)
ImportError: No module named pip' right after installing pip?
$ python --version
Go to the folder where you have installed python and the change to "Scripts" directory
> easy_install.exe pip
This should do the trick of setting up pip in your windows machine in case if pip is corrupted.