-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,8 @@ | ||
import React from 'react'; | ||
import { View, StyleSheet, Text, TouchableOpacity, Image } from 'react-native'; | ||
// import React from 'react'; | ||
// import { View, StyleSheet, Text, TouchableOpacity, Image } from 'react-native'; | ||
// // import { NavigationContainer } from '@react-navigation/native'; | ||
// // import { createStackNavigator } from '@react-navigation/stack'; | ||
// import PlantScreen from "../../Tabs/PlantScreen"; | ||
|
||
export default class PlantCard extends React.Component { | ||
render() { | ||
return ( | ||
<TouchableOpacity style={{ | ||
flex: 0.8, | ||
height: 150, | ||
// width: '100%', | ||
flexDirection: 'row', | ||
alignItems: 'flex-start', | ||
marginBottom: 8, | ||
marginHorizontal: 10, | ||
|
||
backgroundColor: '#fff', | ||
borderRadius: 10, | ||
|
||
// shadowColor: "#000", | ||
// shadowOffset: { | ||
// width: 0, | ||
// height: 4, | ||
// }, | ||
// shadowOpacity: 0.32, | ||
// shadowRadius: 5.46, | ||
|
||
// elevation: 9, | ||
}}> | ||
<View style={{ | ||
// width: '50%', | ||
// height: '100%', | ||
// flex:0.7, | ||
flex: 1, | ||
// backgroundColor: '#123123', | ||
borderTopLeftRadius: 10, | ||
borderBottomLeftRadius:10, | ||
padding: 8, | ||
}}> | ||
<Image | ||
style={{ | ||
// width: '100%', | ||
// height: '100%', | ||
flex: 1, | ||
// borderTopLeftRadius: 10, | ||
// borderBottomLeftRadius:10, | ||
borderRadius: 10, | ||
}} | ||
source={{ uri: this.props.data.img }} | ||
/> | ||
</View> | ||
<View style={{ | ||
flexDirection: 'column', | ||
padding: 8, | ||
// width: '100%', | ||
// height: '30%', | ||
flex: 1, | ||
// flexWrap: 'wrap' | ||
}}> | ||
<Text style={{ | ||
fontSize: 18, | ||
fontWeight: 'bold', | ||
}}> | ||
{this.props.data.name} | ||
</Text> | ||
<Text style={{ | ||
fontSize: 12, | ||
}}> | ||
{this.props.data.binomial} | ||
</Text> | ||
</View> | ||
</TouchableOpacity> | ||
); | ||
} | ||
} | ||
// export default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { View, StyleSheet, Text } from 'react-native'; | ||
|
||
export default function PlantScreen() { | ||
|
||
export default class PlantScreen extends React.Component { | ||
render(){ | ||
return ( | ||
<View> | ||
<Text>Hello world</Text> | ||
</View> | ||
); | ||
} | ||
} |