@@ -5,7 +5,6 @@ import { TextInput, View } from 'react-native';
55import { useFocusEffect } from '@react-navigation/native' ;
66import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
77
8- import type { AppNavigationProp } from '../nav/AppNavigator' ;
98import { ThemeContext , createStyleSheet , HALF_COLOR } from '../styles' ;
109
1110const styles = createStyleSheet ( {
@@ -21,19 +20,13 @@ const styles = createStyleSheet({
2120} ) ;
2221
2322type Props = $ReadOnly < { |
24- // TODO: Currently this type is acceptable because the only
25- // `navigation` prop we pass to a `SmartUrlInput` instance is the
26- // one from a component on AppNavigator.
27- navigation : AppNavigationProp < > ,
28-
2923 style ?: ViewStyleProp ,
3024 onChangeText : ( value : string ) => void ,
3125 onSubmitEditing : ( ) => Promise < void > ,
32- enablesReturnKeyAutomatically : boolean ,
3326| } > ;
3427
3528export default function SmartUrlInput ( props : Props ) : Node {
36- const { style, onChangeText, onSubmitEditing, enablesReturnKeyAutomatically } = props ;
29+ const { style, onChangeText, onSubmitEditing } = props ;
3730
3831 // We should replace the fixme with
3932 // `React$ElementRef<typeof TextInput>` when we can. Currently, that
@@ -89,7 +82,7 @@ export default function SmartUrlInput(props: Props): Node {
8982 keyboardType = "url"
9083 underlineColorAndroid = "transparent"
9184 onSubmitEditing = { onSubmitEditing }
92- enablesReturnKeyAutomatically = { enablesReturnKeyAutomatically }
85+ enablesReturnKeyAutomatically
9386 ref = { textInputRef }
9487 />
9588 </ View >
0 commit comments