Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup for Android , Minor Style Change #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class App extends React.Component {
this.props.people.map((person, index) => (
<View key={index} style={styles.person}>
<Text>Name: {person.name}</Text>
<Text onPress={() => this.deletePerson(person)}>Delete Person</Text>
<Text style={{color:'blue'}} onPress={() => this.deletePerson(person)}>Delete Person</Text>
</View>
))
}
Expand Down
48 changes: 12 additions & 36 deletions index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,18 @@ import {
View
} from 'react-native';

export default class RNRedux extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
</Text>
</View>
);
}
}
import { Provider } from 'react-redux'
import configureStore from './configureStore'
import App from './app'

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
const store = configureStore()



const RNRedux = () => (
<Provider store={store}>
<App />
</Provider>
)

AppRegistry.registerComponent('RNRedux', () => RNRedux);
Loading