Add changelog screen

This commit is contained in:
Gérald L 2020-09-01 19:00:05 +02:00
parent efb30dff2f
commit 2ed4d61c55

View file

@ -0,0 +1,25 @@
// @flow
import * as React from 'react';
import {Card, withTheme} from 'react-native-paper';
import CollapsibleScrollView from '../../components/Collapsible/CollapsibleScrollView';
import TextFileReader from "../../components/Screens/MarkdownRenderScreen";
const url = "https://git.etud.insa-toulouse.fr/leban/application-amicale/raw/branch/master/Changelog.md";
class ChangelogScreen extends React.Component<null> {
render(): React.Node {
return (
<CollapsibleScrollView style={{padding: 5}}>
<Card>
<Card.Content>
<TextFileReader text={url}>
</TextFileReader>
</Card.Content>
</Card>
</CollapsibleScrollView>
);
}
}
export default withTheme(ChangelogScreen);