Skip to content

Commit 03da3fa

Browse files
committed
RealmInputScreen [nfc]: Inline a very thin wrapper
1 parent 5a6c6c1 commit 03da3fa

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
@@ -53,10 +53,6 @@ export default function RealmInputScreen(props: Props): Node {
5353
}
5454
}, [realmInputValue]);
5555

56-
const handleRealmChange = useCallback(value => {
57-
setRealmInputValue(value);
58-
}, []);
59-
6056
const { navigation } = props;
6157

6258
const styles = {
@@ -78,7 +74,7 @@ export default function RealmInputScreen(props: Props): Node {
7874
<SmartUrlInput
7975
style={styles.input}
8076
navigation={navigation}
81-
onChangeText={handleRealmChange}
77+
onChangeText={setRealmInputValue}
8278
onSubmitEditing={tryRealm}
8379
enablesReturnKeyAutomatically
8480
/>

0 commit comments

Comments
 (0)