Skip to content

Commit a8d53d3

Browse files
committed
RealmInputScreen [nfc]: Inline a very thin wrapper
1 parent 1b11afb commit a8d53d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/start/RealmInputScreen.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ export default function RealmInputScreen(props: Props): Node {
6161
}
6262
}, [realmInputValue]);
6363

64-
const handleRealmChange = useCallback(value => {
65-
setRealmInputValue(value);
66-
}, []);
67-
6864
const { navigation } = props;
6965

7066
const styles = {
@@ -86,7 +82,7 @@ export default function RealmInputScreen(props: Props): Node {
8682
<SmartUrlInput
8783
style={styles.input}
8884
navigation={navigation}
89-
onChangeText={handleRealmChange}
85+
onChangeText={setRealmInputValue}
9086
onSubmitEditing={tryRealm}
9187
enablesReturnKeyAutomatically
9288
/>

0 commit comments

Comments
 (0)