Skip to content

Commit 98e3d40

Browse files
committed
chore: tweaks
1 parent 26de386 commit 98e3d40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

experiments-app/src/Experiments/TextInputEvents.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { StyleSheet, SafeAreaView, View, TextInput } from 'react-native';
2+
import { StyleSheet, SafeAreaView, TextInput } from 'react-native';
33
import { buildEventLogger } from './helpers';
44

55
const handlePressIn = buildEventLogger('pressIn');
@@ -9,7 +9,7 @@ const handleBlur = buildEventLogger('blur');
99
const handleChange = buildEventLogger('change');
1010

1111
export function TextInputEvents() {
12-
const [value, setValue] = React.useState('Test');
12+
const [value, setValue] = React.useState('');
1313

1414
const handleChangeText = (value: string) => {
1515
setValue(value);
@@ -21,13 +21,13 @@ export function TextInputEvents() {
2121
<TextInput
2222
style={styles.textInput}
2323
value={value}
24+
onChangeText={handleChangeText}
2425
editable={false}
2526
onPressIn={handlePressIn}
2627
onPressOut={handlePressOut}
2728
onFocus={handleFocus}
2829
onBlur={handleBlur}
2930
onChange={handleChange}
30-
onChangeText={handleChangeText}
3131
/>
3232
</SafeAreaView>
3333
);

0 commit comments

Comments
 (0)