BlueWallet/screen/settings/releasenotes.js

34 lines
885 B
JavaScript
Raw Normal View History

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