Skip to content

Commit aa4759f

Browse files
committed
1.0.0-alpha.1 + Chat input improvements.
1 parent e6ce3ab commit aa4759f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enderchat",
3-
"version": "0.0.1",
3+
"version": "1.0.0-alpha.1",
44
"private": true,
55
"license": "MPL-2.0",
66
"scripts": {

src/screens/ChatScreen.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ const ChatScreen = ({ navigation }: { navigation: ChatNavigationProp }) => {
148148
value={message}
149149
onChangeText={setMessage}
150150
style={styles.textField}
151+
onSubmitEditing={sendMessage}
152+
enablesReturnKeyAutomatically
153+
returnKeyType='send'
154+
blurOnSubmit={false}
151155
/>
152156
<Ionicons.Button name='ios-send-sharp' onPress={sendMessage}>
153157
Send

src/screens/SettingScreen.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const SettingScreen = () => {
7171
const darkModeApp = useDarkMode()
7272
const { settings, setSettings } = useContext(SettingsContext)
7373

74+
// TODO: Setting to disable autocomplete.
7475
return (
7576
<>
7677
<View style={darkModeApp ? globalStyle.darkHeader : globalStyle.header}>

0 commit comments

Comments
 (0)