1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Refine input

This commit is contained in:
Zhiyuan Zheng
2021-05-10 23:41:48 +02:00
parent 7da8297b46
commit c0dfc30dec
5 changed files with 105 additions and 57 deletions

View File

@ -7,7 +7,7 @@ import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React, { RefObject, useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Alert, StyleSheet } from 'react-native'
import { Alert, StyleSheet, View } from 'react-native'
import FlashMessage from 'react-native-flash-message'
import { ScrollView } from 'react-native-gesture-handler'
@ -95,14 +95,22 @@ const ScreenMeProfileNote: React.FC<StackScreenProps<
return (
<ScrollView style={styles.base} keyboardShouldPersistTaps='handled'>
<Input value={newNote} setValue={setNewNote} multiline emoji />
<View style={{ marginBottom: StyleConstants.Spacing.XL * 2 }}>
<Input
value={newNote}
setValue={setNewNote}
multiline
emoji
options={{ maxLength: 500 }}
/>
</View>
</ScrollView>
)
}
const styles = StyleSheet.create({
base: {
padding: StyleConstants.Spacing.Global.PagePadding
paddingHorizontal: StyleConstants.Spacing.Global.PagePadding
}
})