rn-randomize-number-v1
v1.0.7
Published
A React Native npm package that generates a random number.
Downloads
5
Readme
rn-randomize-number
A basic npm package that allows users to generate a random number
Badges
Goes under these licenses
Authors
Usage/Examples
import { generate } from "rn-randomize-number-v1";
function App() {
const [randomNumber, setRandomNumber] = 0;
useEffect(()=>{
const max = 100;
setRandomNumber(generate(max));
},[])
return(
<div>
{randomNumber}
</div>
);
}