Skip to content

Commit

Permalink
RealmInputScreen [nfc]: Inline a very thin wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Mar 29, 2022
1 parent 1b11afb commit a8d53d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/start/RealmInputScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ export default function RealmInputScreen(props: Props): Node {
}
}, [realmInputValue]);

const handleRealmChange = useCallback(value => {
setRealmInputValue(value);
}, []);

const { navigation } = props;

const styles = {
Expand All @@ -86,7 +82,7 @@ export default function RealmInputScreen(props: Props): Node {
<SmartUrlInput
style={styles.input}
navigation={navigation}
onChangeText={handleRealmChange}
onChangeText={setRealmInputValue}
onSubmitEditing={tryRealm}
enablesReturnKeyAutomatically
/>
Expand Down

0 comments on commit a8d53d3

Please sign in to comment.