Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Created February 23, 2017 16:37
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save spencercarli/8acb7208090f759b0fc2fda3394796f1 to your computer and use it in GitHub Desktop.
Save spencercarli/8acb7208090f759b0fc2fda3394796f1 to your computer and use it in GitHub Desktop.
import React from 'react';
import { View, TextInput, Image } from 'react-native';
import styles from './styles';
import logo from './logo.png';
const Demo = () => {
return (
<View style={styles.container}>
<Image source={logo} style={styles.logo} />
<TextInput
placeholder="Email"
style={styles.input}
/>
<TextInput
placeholder="Username"
style={styles.input}
/>
<TextInput
placeholder="Password"
style={styles.input}
/>
<TextInput
placeholder="Confirm Password"
style={styles.input}
/>
</View>
);
};
export default Demo;
@hugomosh
Copy link

What is inside style.container?

@stantoncbradley
Copy link

yeah, came here to see how container was styled

@nihp
Copy link

nihp commented Oct 10, 2019

I have an issue with keyboard-aware-scroll-view. I have lot of input boxes and one of the boxes has dropdown. But it hided dropdown behind the keyboard. I tried with margins and another values. But it not worked for me. Any solution for this.

Sorry to ask here. I have posted it in forums but there is no reply from any one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment