What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-20 20:46:04
react native textinput min number max nuber
const onCheckLimit = (value: string) => { const parsedQty = Number.parseInt(value) if (Number.isNaN(parsedQty)) { setQuantity(0) //setter for state } else if (parsedQty > 10) { setQuantity(10) } else { setQuantity... Add solution -
Javascript 2021-09-16 19:32:03
add search bar react native
import { SearchBar } from 'react-native-elements'; export default class App extends React.Component { state = { search: '', }; updateSearch = (search) => { this.setState({ search }); }; render() { const { search } = this.state;... Add solution -
Javascript 2021-09-08 10:44:02
make a fixed list in react native
export default function App() { const [enteredGoal,setEnteredGoal] = useState(''); const [courseGoals, setCourseGoals] = useState([]); const goalInputHandler = (enteredText) => { setEnteredGoal(enteredText); } const addGoalHandler = () =&... Add solution