mirror of
https://github.com/tooot-app/app
synced 2025-02-18 04:40:57 +01:00
Fix keyboard appearance
Should match what the app is instead of system
This commit is contained in:
parent
960634ec0b
commit
e5effd6b65
@ -35,7 +35,7 @@ const ComponentInstance: React.FC<Props> = ({
|
|||||||
goBack = false
|
goBack = false
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation('componentInstance')
|
const { t } = useTranslation('componentInstance')
|
||||||
const { theme } = useTheme()
|
const { mode, theme } = useTheme()
|
||||||
|
|
||||||
const instances = useSelector(getInstances, () => true)
|
const instances = useSelector(getInstances, () => true)
|
||||||
const [domain, setDomain] = useState<string>()
|
const [domain, setDomain] = useState<string>()
|
||||||
@ -158,6 +158,7 @@ const ComponentInstance: React.FC<Props> = ({
|
|||||||
placeholder={t('server.textInput.placeholder')}
|
placeholder={t('server.textInput.placeholder')}
|
||||||
placeholderTextColor={theme.secondary}
|
placeholderTextColor={theme.secondary}
|
||||||
returnKeyType='go'
|
returnKeyType='go'
|
||||||
|
keyboardAppearance={mode}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
type='text'
|
type='text'
|
||||||
|
@ -25,7 +25,7 @@ const ComposeEditAttachmentRoot: React.FC<Props> = ({
|
|||||||
setAltText
|
setAltText
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation('sharedCompose')
|
const { t } = useTranslation('sharedCompose')
|
||||||
const { theme } = useTheme()
|
const { mode, theme } = useTheme()
|
||||||
const { composeState } = useContext(ComposeContext)
|
const { composeState } = useContext(ComposeContext)
|
||||||
const theAttachment = composeState.attachments.uploads[index].remote
|
const theAttachment = composeState.attachments.uploads[index].remote
|
||||||
|
|
||||||
@ -79,6 +79,7 @@ const ComposeEditAttachmentRoot: React.FC<Props> = ({
|
|||||||
placeholderTextColor={theme.secondary}
|
placeholderTextColor={theme.secondary}
|
||||||
scrollEnabled
|
scrollEnabled
|
||||||
value={altText}
|
value={altText}
|
||||||
|
keyboardAppearance={mode}
|
||||||
/>
|
/>
|
||||||
<Text style={[styles.altTextLength, { color: theme.secondary }]}>
|
<Text style={[styles.altTextLength, { color: theme.secondary }]}>
|
||||||
{altText?.length || 0} / 1500
|
{altText?.length || 0} / 1500
|
||||||
|
@ -19,7 +19,7 @@ const ComposePoll: React.FC = () => {
|
|||||||
composeDispatch
|
composeDispatch
|
||||||
} = useContext(ComposeContext)
|
} = useContext(ComposeContext)
|
||||||
const { t } = useTranslation('sharedCompose')
|
const { t } = useTranslation('sharedCompose')
|
||||||
const { theme } = useTheme()
|
const { mode, theme } = useTheme()
|
||||||
|
|
||||||
const [firstRender, setFirstRender] = useState(true)
|
const [firstRender, setFirstRender] = useState(true)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -48,6 +48,7 @@ const ComposePoll: React.FC = () => {
|
|||||||
color={theme.secondary}
|
color={theme.secondary}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
keyboardAppearance={mode}
|
||||||
{...(i === 0 && firstRender && { autoFocus: true })}
|
{...(i === 0 && firstRender && { autoFocus: true })}
|
||||||
style={[
|
style={[
|
||||||
styles.textInput,
|
styles.textInput,
|
||||||
|
@ -9,10 +9,11 @@ import ComposeContext from '../../utils/createContext'
|
|||||||
const ComposeSpoilerInput: React.FC = () => {
|
const ComposeSpoilerInput: React.FC = () => {
|
||||||
const { composeState, composeDispatch } = useContext(ComposeContext)
|
const { composeState, composeDispatch } = useContext(ComposeContext)
|
||||||
const { t } = useTranslation('sharedCompose')
|
const { t } = useTranslation('sharedCompose')
|
||||||
const { theme } = useTheme()
|
const { mode, theme } = useTheme()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
|
keyboardAppearance={mode}
|
||||||
style={[
|
style={[
|
||||||
styles.spoilerInput,
|
styles.spoilerInput,
|
||||||
{
|
{
|
||||||
|
@ -9,10 +9,11 @@ import ComposeContext from '../../utils/createContext'
|
|||||||
const ComposeTextInput: React.FC = () => {
|
const ComposeTextInput: React.FC = () => {
|
||||||
const { composeState, composeDispatch } = useContext(ComposeContext)
|
const { composeState, composeDispatch } = useContext(ComposeContext)
|
||||||
const { t } = useTranslation('sharedCompose')
|
const { t } = useTranslation('sharedCompose')
|
||||||
const { theme } = useTheme()
|
const { mode, theme } = useTheme()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TextInput
|
<TextInput
|
||||||
|
keyboardAppearance={mode}
|
||||||
style={[
|
style={[
|
||||||
styles.textInput,
|
styles.textInput,
|
||||||
{
|
{
|
||||||
|
@ -68,7 +68,7 @@ const sharedScreens = (
|
|||||||
}: NativeStackNavigatorProps) => JSX.Element
|
}: NativeStackNavigatorProps) => JSX.Element
|
||||||
>
|
>
|
||||||
) => {
|
) => {
|
||||||
const { theme } = useTheme()
|
const { mode, theme } = useTheme()
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
const [searchTerm, setSearchTerm] = useState<string>()
|
const [searchTerm, setSearchTerm] = useState<string>()
|
||||||
@ -178,6 +178,7 @@ const sharedScreens = (
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
keyboardAppearance={mode}
|
||||||
style={[
|
style={[
|
||||||
styles.textInput,
|
styles.textInput,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user