Practice and reinforce the concepts from Lesson 2
Research 3 popular React Native apps and identify:
Common UI Components
Visual Patterns
Examine this code snippet and predict what it will look like:
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#f0f0f0',
padding: 20,
},
card: {
backgroundColor: 'white',
borderRadius: 10,
padding: 15,
marginBottom: 10,
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.1,
shadowRadius: 4,
elevation: 3,
},
title: {
fontSize: 18,
fontWeight: 'bold',
color: '#333',
},
subtitle: {
fontSize: 14,
color: '#666',
marginTop: 5,
}
});
Draw what you think this component would look like on paper.
Create a style object for a button that:
const buttonStyle = {
// Your styles here
};
Complete this activity and submit your work through the Activity Submission Form