Skip to content

Instantly share code, notes, and snippets.

@narodejesus
narodejesus / TextInpu1t.tsx
Last active January 18, 2022 12:53
TextInput1.tsx
import React from 'react'
import {TextInput} from 'react-native'
import NumberInput from 'some-library-input'
interface Props = {
type: 'text' | 'number'
value: string
placeholder: string
}
@narodejesus
narodejesus / TextInput2.tsx
Created January 18, 2022 12:50
TextInputBad
import React from 'react'
import {TextInput} from 'react-native'
import NumberInput from 'some-library-input'
interface Props = {
type: 'text' | 'number' | 'password'
value: string
placeholder: string
mask?: string
passwordRules?: string
### Keybase proof
I hereby claim:
* I am narodejesus on github.
* I am narodejesus (https://keybase.io/narodejesus) on keybase.
* I have a public key ASCoaIyVq4u8WEczpQIuZkxxE0-58ogGDCb5cP2kWHAz0Qo
To claim this, I am signing this object: