forked from supasate/connected-react-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.js
More file actions
30 lines (27 loc) · 628 Bytes
/
Account.js
File metadata and controls
30 lines (27 loc) · 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import {View, Text, StyleSheet, Button} from 'react-native';
import {getUrlParams} from '../utils/url';
const Account = ({history}) => {
const urlParams = getUrlParams(history.location.search);
const {accountId} = urlParams;
return (
<View>
<Text style={styles.title}>Account {accountId}</Text>
<Button
color="blue"
onPress={() => {
history.go(-1);
}}
title="Back"
/>
</View>
);
};
const styles = StyleSheet.create({
title: {
color: 'black',
fontSize: 24,
fontWeight: '600',
},
});
export default Account;