Guest User

Untitled

a guest
Apr 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. import { Container } from 'native-base';
  2. import React from 'react';
  3. import { StyleSheet } from 'react-native';
  4.  
  5. import Screen from './ScreenContainer';
  6.  
  7. const styles = StyleSheet.create({
  8. container: {
  9. backgroundColor: '#FF6666',
  10. flex: 1
  11. }
  12. });
  13.  
  14. const App = () => (
  15. <Provider store={store}>
  16. <Container style={styles.container}>
  17. <Screen />
  18. </Container>
  19. </Provider>
  20. );
  21.  
  22. export default App;
  23.  
  24. import { Container, Content, Form, Input, Label, Item } from 'native-base';
  25. import React from 'react';
  26.  
  27. import AppLogo from '../components/AppLogo';
  28.  
  29. const Screen = () => (
  30. <Container>
  31. <Content>
  32. <AppLogo />
  33. <Form>
  34. <Item floatingLabel last>
  35. <Label>Username</Label>
  36. <Input />
  37. </Item>
  38. </Form>
  39. </Content>
  40. </Container>
  41. );
  42.  
  43. export default Screen;
  44.  
  45. const styles = StyleSheet.create({
  46. container: {
  47. alignItems: 'center',
  48. backgroundColor: '#FF6666',
  49. flex: 1
  50. }
  51. });
Add Comment
Please, Sign In to add comment