mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
33 lines
823 B
JavaScript
33 lines
823 B
JavaScript
import React, { useState, useEffect } from 'react';
|
|
import { ScrollView } from 'react-native';
|
|
import { BlueLoading, SafeBlueArea, BlueCard, BlueText, BlueNavigationStyle } from '../../BlueComponents';
|
|
/** @type {AppStorage} */
|
|
|
|
const ReleaseNotes = () => {
|
|
const [isLoading, setIsLoading] = useState(true);
|
|
const notes = require('../../release-notes');
|
|
|
|
useEffect(() => {
|
|
setIsLoading(false);
|
|
}, []);
|
|
|
|
return isLoading ? (
|
|
(<BlueLoading />)
|
|
) : (
|
|
(<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
|
|
<ScrollView>
|
|
<BlueCard>
|
|
<BlueText>{notes}</BlueText>
|
|
</BlueCard>
|
|
</ScrollView>
|
|
</SafeBlueArea>)
|
|
);
|
|
};
|
|
|
|
ReleaseNotes.navigationOptions = () => ({
|
|
...BlueNavigationStyle(),
|
|
title: 'Release notes',
|
|
});
|
|
|
|
export default ReleaseNotes;
|