Render changelog.md instead of opening a webview #10

Closed
Ghost wants to merge 6 commits from (deleted):changelog_screen into master
Showing only changes of commit 2ed4d61c55 - Show all commits

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);