Newer
Older
import { ScrollView, View, BackHandler } from 'react-native'
import { shared } from '../i18n/en/labels'
import settingsLabels from '../i18n/en/settings'
import styles,{secondaryColor} from '../styles'
import Button from './button'
import { saveLicenseFlag } from '../local-storage'
export default function License({setLicense}) {
<ScrollView testID='licensePage' style={styles.licensePage}>
<AppText style={styles.framedSegmentTitle}>{labels.title}</AppText>
<Button
style={styles.licenseButton}
backgroundColor={'grey'}
onPress={() => BackHandler.exitApp()}
<Button
style={styles.licenseButton}
backgroundColor={secondaryColor}
onPress={async () => {
await saveLicenseFlag()
setLicense()
}}
{shared.ok}
</Button>
</View>
</ScrollView>
)
}