@@ -5,7 +5,6 @@ import { TextInput, View } from 'react-native';
5
5
import { useFocusEffect } from '@react-navigation/native' ;
6
6
import type { ViewStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
7
7
8
- import type { AppNavigationProp } from '../nav/AppNavigator' ;
9
8
import { ThemeContext , createStyleSheet , HALF_COLOR } from '../styles' ;
10
9
11
10
const styles = createStyleSheet ( {
@@ -21,19 +20,13 @@ const styles = createStyleSheet({
21
20
} ) ;
22
21
23
22
type 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
-
29
23
style ?: ViewStyleProp ,
30
24
onChangeText : ( value : string ) => void ,
31
25
onSubmitEditing : ( ) => Promise < void > ,
32
- enablesReturnKeyAutomatically : boolean ,
33
26
| } > ;
34
27
35
28
export default function SmartUrlInput ( props : Props ) : Node {
36
- const { style, onChangeText, onSubmitEditing, enablesReturnKeyAutomatically } = props ;
29
+ const { style, onChangeText, onSubmitEditing } = props ;
37
30
38
31
// We should replace the fixme with
39
32
// `React$ElementRef<typeof TextInput>` when we can. Currently, that
@@ -89,7 +82,7 @@ export default function SmartUrlInput(props: Props): Node {
89
82
keyboardType = "url"
90
83
underlineColorAndroid = "transparent"
91
84
onSubmitEditing = { onSubmitEditing }
92
- enablesReturnKeyAutomatically = { enablesReturnKeyAutomatically }
85
+ enablesReturnKeyAutomatically
93
86
ref = { textInputRef }
94
87
/>
95
88
</ View >
0 commit comments