This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
export default function CustomInput(props) { | |
const { error, inputProps, regex, className, onInput } = props; | |
const [showError, setShowError] = useState(false); | |
const [text, setText] = useState(""); | |
const handleChange = (val) => { | |
setText(val); | |
if (regex.test(val)) { | |
setShowError(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x86d121F069F6164F00c6FBc2098f65F1B6f2da22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java 1.8: | |
sudo apt-get install openjdk-8-jdk | |
sudo apt-get install openjdk-8-jre | |
sudo snap install androidsdk | |
androidsdk "platform-tools" "platforms;android-28" "build-tools;28.0.3" "add-ons;addon-google_apis-google-24" | |
nano ~/.bashrc |