Skip to content

Commit bbba246

Browse files
committed
UserStatusScreen [nfc]: Add "input row" View, to soon include emoji input
For now, just leave the status-text input by itself, filling all of the new View. And move its margin to the new View; we'll want it to apply to the emoji input too, coming soon.
1 parent 96901e3 commit bbba246

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/user-statuses/UserStatusScreen.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ import statusSuggestions from './userStatusTextSuggestions';
2020
import * as api from '../api';
2121

2222
const styles = createStyleSheet({
23-
statusTextInput: {
23+
inputRow: {
24+
flexDirection: 'row',
2425
margin: 16,
2526
},
27+
statusTextInput: {
28+
flex: 1,
29+
},
2630
buttonsWrapper: {
2731
flexDirection: 'row',
2832
},
@@ -73,14 +77,19 @@ export default function UserStatusScreen(props: Props): Node {
7377

7478
return (
7579
<Screen title="User status">
76-
<Input
77-
autoFocus
78-
maxLength={60}
79-
style={styles.statusTextInput}
80-
placeholder="What’s your status?"
81-
value={textInputValue}
82-
onChangeText={setTextInputValue}
83-
/>
80+
<View style={styles.inputRow}>
81+
{
82+
// TODO: Input for emoji status
83+
}
84+
<Input
85+
autoFocus
86+
maxLength={60}
87+
style={styles.statusTextInput}
88+
placeholder="What’s your status?"
89+
value={textInputValue}
90+
onChangeText={setTextInputValue}
91+
/>
92+
</View>
8493
<FlatList
8594
data={statusSuggestions}
8695
keyboardShouldPersistTaps="always"

0 commit comments

Comments
 (0)