-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
49 lines (47 loc) · 1.27 KB
/
App.js
File metadata and controls
49 lines (47 loc) · 1.27 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import * as React from 'react';
import * as GovUK from 'govuk-react';
export default function App() {
return (
<View style={styles.container}>
<GovUK.GlobalStyle />
<GovUK.TopNav
serviceTitle={
<GovUK.TopNav.Anchor>
React Native GDS Application
</GovUK.TopNav.Anchor>
}
search={
<GovUK.SearchBox>
<GovUK.SearchBox.Input placeholder="Search GOV.UK" />
<GovUK.SearchBox.Button />
</GovUK.SearchBox>
}
>
<GovUK.TopNav.NavLink>
Home
</GovUK.TopNav.NavLink>
<GovUK.TopNav.NavLink>
Forms
</GovUK.TopNav.NavLink>
</GovUK.TopNav>
<GovUK.Page.WidthContainer>
<GovUK.Page.Main>
<GovUK.H2>Welcome to the govuk-react example application.</GovUK.H2>
<GovUK.Paragraph>Click Start to continue.</GovUK.Paragraph>
<GovUK.Button>
Start now
</GovUK.Button>
</GovUK.Page.Main>
</GovUK.Page.WidthContainer>
<GovUK.Footer />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff'
},
});