Fixed Android Safe View Areas (#294)
* Fixed Android safe view areas * fix: xmark positioning * fix: redundant safeareaprovider * fix: roll back redundant changes * fix: linter --------- Co-authored-by: Lei Nelissen <lei@codified.nl>
This commit is contained in:
@@ -2,7 +2,6 @@ import { Paragraph } from '@/components/Typography';
|
||||
import React, { useCallback } from 'react';
|
||||
import { Switch } from 'react-native-gesture-handler';
|
||||
import { t } from '@/localisation';
|
||||
import { SafeScrollView } from '@/components/SafeNavigatorView';
|
||||
import { useAppDispatch, useTypedSelector } from '@/store';
|
||||
import { setEnablePlaybackReporting } from '@/store/settings/actions';
|
||||
import Container from '../components/Container';
|
||||
@@ -17,14 +16,12 @@ export default function PlaybackReporting() {
|
||||
}, [isEnabled, dispatch]);
|
||||
|
||||
return (
|
||||
<SafeScrollView>
|
||||
<Container>
|
||||
<Paragraph>{t('playback-reporting-description')}</Paragraph>
|
||||
<SwitchContainer>
|
||||
<SwitchLabel>{t('playback-reporting')}</SwitchLabel>
|
||||
<Switch value={isEnabled} onValueChange={toggleSwitch} />
|
||||
</SwitchContainer>
|
||||
</Container>
|
||||
</SafeScrollView>
|
||||
<Container>
|
||||
<Paragraph>{t('playback-reporting-description')}</Paragraph>
|
||||
<SwitchContainer>
|
||||
<SwitchLabel>{t('playback-reporting')}</SwitchLabel>
|
||||
<Switch value={isEnabled} onValueChange={toggleSwitch} />
|
||||
</SwitchContainer>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user