Skip to content

Instantly share code, notes, and snippets.

View thelamina's full-sized avatar
💡
traumfänger

Itunu Lamina thelamina

💡
traumfänger
View GitHub Profile
import React, { useRef, useEffect, useState } from 'react';
import {
ActivityIndicator,
StyleSheet,
Text,
TouchableOpacity,
TouchableWithoutFeedback,
View,
} from 'react-native';
import {
@thelamina
thelamina / CountryCodes.json
Created March 26, 2024 08:31 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@thelamina
thelamina / react-otp-input.tsx
Created February 4, 2023 17:02
react-otp-input
import clsx from 'clsx';
import React, { useMemo } from 'react';
type onChangeType = {
target: {
name: string;
value: string;
};
};
@thelamina
thelamina / SimpleForm.jsx
Created March 25, 2021 16:20
useForm hook
import React from 'react
import { useForm } from './hooks'
export const CreateAccountForm = () => {
const { values, errors, bindField, isValid } = useForm({
initialValues: {
email: '',
phone: '',
firstName: '',
lastName: '',
@thelamina
thelamina / index.html
Created August 26, 2020 07:28
style radio, checkbox as a button
<div>
<div class='ck-button'>
<label>
<input
type='radio'
name='size'
defaultChecked
defaultValue={product.size8}
/>
<span>size 8</span>