Add changelog screen
This commit is contained in:
parent
efb30dff2f
commit
2ed4d61c55
1 changed files with 25 additions and 0 deletions
25
src/screens/Other/ChangelogScreen.js
Normal file
25
src/screens/Other/ChangelogScreen.js
Normal 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);
|
Loading…
Reference in a new issue