Skip to content

Commit c93923e

Browse files
committed
RealmInputScreen [nfc]: Inline a very thin wrapper
1 parent 8f6bfb1 commit c93923e

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
@@ -87,10 +87,6 @@ export default function RealmInputScreen(props: Props): Node {
8787
}
8888
}, [navigation, realmInputValue]);
8989

90-
const handleRealmChange = useCallback(value => {
91-
setRealmInputValue(value);
92-
}, []);
93-
9490
const styles = React.useMemo(
9591
() =>
9692
createStyleSheet({
@@ -132,7 +128,7 @@ export default function RealmInputScreen(props: Props): Node {
132128
autoCorrect={false}
133129
autoCapitalize="none"
134130
returnKeyType="go"
135-
onChangeText={handleRealmChange}
131+
onChangeText={setRealmInputValue}
136132
blurOnSubmit={false}
137133
keyboardType="url"
138134
underlineColorAndroid="transparent"

0 commit comments

Comments
 (0)