Components
/
Numpad
const [value, setValue] = useState('');
const numpadPressHandler = useCallback(value => {
  setValue(value);
}, []);

<NumpadOutput value={value} />
<Numpad onPress={numpadPressHandler} />

Props

Numpad

PropTypeDefaultDescription
onPress func() => {}
decimal booltrueRenders an additional period button to support decimal input