Skip to content

Instantly share code, notes, and snippets.

@haruelrovix
Last active December 10, 2018 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haruelrovix/4fb2e695d1562ff3475ebc91e6c27fcd to your computer and use it in GitHub Desktop.
Save haruelrovix/4fb2e695d1562ff3475ebc91e6c27fcd to your computer and use it in GitHub Desktop.
RNE x RNW: Add styling to Home component
import React, { PureComponent } from 'react';
import { View } from 'react-native';
import { Input, Button } from 'react-native-elements';
import styles from './Shared.style';
class Home extends PureComponent {
render() {
const { input, button } = styles;
return (
<View style={styles.container}>
<Input
containerStyle={input.containerStyle}
inputStyle={input.inputStyle}
label='Owner'
placeholder="Github's owner"
/>
<Input
containerStyle={input.containerStyle}
inputStyle={input.inputStyle}
label='Repo'
placeholder="Github's repository name"
/>
<Button
title='SUBMIT'
icon={{
color: 'white',
name:'paper-plane',
size: 15,
type: 'font-awesome'
}}
buttonStyle={button.containerStyle}
/>
</View>
);
}
}
export default Home;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment