BlueWallet/screen/settings/releasenotes.js

34 lines
894 B
JavaScript
Raw Normal View History

2020-07-20 15:38:46 +02:00
import React from 'react';
import { ScrollView, StyleSheet } from 'react-native';
2020-07-15 19:32:59 +02:00
import { useTheme } from '@react-navigation/native';
2020-12-25 17:09:53 +01:00
import navigationStyle from '../../components/navigationStyle';
import { SafeBlueArea, BlueCard, BlueText } from '../../BlueComponents';
2020-07-20 15:38:46 +02:00
import loc from '../../loc';
2019-01-31 00:31:20 +01:00
2019-12-25 20:17:14 +01:00
const ReleaseNotes = () => {
const notes = require('../../release-notes');
2020-07-15 19:32:59 +02:00
const { colors } = useTheme();
const styles = StyleSheet.create({
root: {
flex: 1,
backgroundColor: colors.background,
},
});
2019-01-31 00:31:20 +01:00
2020-07-20 15:38:46 +02:00
return (
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={styles.root}>
2019-12-25 20:17:14 +01:00
<ScrollView>
<BlueCard>
2020-11-22 09:04:04 +01:00
<BlueText>{notes}</BlueText>
2019-12-25 20:17:14 +01:00
</BlueCard>
</ScrollView>
</SafeBlueArea>
2019-12-25 20:17:14 +01:00
);
};
2019-01-31 00:31:20 +01:00
2020-12-25 17:09:53 +01:00
ReleaseNotes.navigationOptions = navigationStyle({
2020-07-20 15:38:46 +02:00
title: loc.settings.about_release_notes,
2019-12-25 20:17:14 +01:00
});
2019-01-31 00:31:20 +01:00
2019-12-25 20:17:14 +01:00
export default ReleaseNotes;