-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApp.js
More file actions
37 lines (33 loc) · 889 Bytes
/
App.js
File metadata and controls
37 lines (33 loc) · 889 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
31
32
33
34
35
36
37
import React from 'react';
import styled from 'styled-components/native';
const StyledView = styled.View`
flex: 1;
background-color: #eee;
align-items: center;
justify-content: center;
`;
const StyledText = styled.Text`
color: #55f;
font-size: ${props => props.highlight ? '16px' : '12px'};
`;
const StyledTextInput = styled.TextInput`
width: 100%;
`;
const StyledSlider = styled.Slider`
width: 100%;
position: absolute;
top: 40px;
`;
export default class App extends React.Component {
render() {
return (
<StyledView>
<StyledText highlight={true}>Open up App.js to start working on your app!</StyledText>
<StyledText>Changes you make will automatically reload.</StyledText>
<StyledText>Shake your phone to open the developer menu.</StyledText>
<StyledTextInput/>
<StyledSlider/>
</StyledView>
);
}
}