import React, { useState } from "react"; import { Button, StyleSheet, TextInput, View } from "react-native"; interface Props { callHandler?: (callee: string) => void, } const DialScreen = (props: Props) => { const [callNumber, setCallNumber] = useState(''); return ( setCallNumber(number)} placeholder="Type number to call" style={styles.callInput} defaultValue={callNumber} />