export default function useBackButton(ref: React.RefObject<NavigationContainerRef>): void; code example
Example: Cannot find name 'RefObject'
class TestApp extends React.Component<AppProps, AppState> {
private stepInput: React.RefObject<HTMLInputElement>;
constructor(props) {
super(props);
this.stepInput = React.createRef();
}
render() {
return <input type="text" ref={this.stepInput} />;
}
}