Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-113
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-113
2023-113
Commits
292f0939
Commit
292f0939
authored
Sep 03, 2023
by
danushka9999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial crop roation showing
parent
d7e6cb72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
Soil Analyzer and Optimized Crop Finder - IT20233808/RP-MobileAPP-FE/components/cropRotationPlanner/CropRotationResponse
...PP-FE/components/cropRotationPlanner/CropRotationResponse
+0
-0
Soil Analyzer and Optimized Crop Finder - IT20233808/RP-MobileAPP-FE/components/cropRotationPlanner/CropRotationResponse.js
...FE/components/cropRotationPlanner/CropRotationResponse.js
+61
-0
No files found.
Soil Analyzer and Optimized Crop Finder - IT20233808/RP-MobileAPP-FE/components/cropRotationPlanner/CropRotationResponse
deleted
100644 → 0
View file @
d7e6cb72
Soil Analyzer and Optimized Crop Finder - IT20233808/RP-MobileAPP-FE/components/cropRotationPlanner/CropRotationResponse.js
0 → 100644
View file @
292f0939
import
React
from
'
react
'
;
import
{
View
,
Text
,
FlatList
,
Image
,
StyleSheet
}
from
'
react-native
'
;
const
CropRotationResponse
=
({
route
})
=>
{
const
{
response
}
=
route
.
params
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
Text
style
=
{
styles
.
heading
}
>
Crop
Rotation
Plan
<
/Text
>
<
FlatList
data
=
{
response
.
cropsToGrow
}
keyExtractor
=
{(
item
)
=>
item
.
cropName
}
renderItem
=
{({
item
})
=>
(
<
View
style
=
{
styles
.
cropItem
}
>
<
Image
style
=
{
styles
.
cropImage
}
source
=
{{
uri
:
`https://example.com/api/crop-images/
${
item
.
cropName
}
`
}}
/
>
<
Text
style
=
{
styles
.
cropName
}
>
{
item
.
cropName
}
<
/Text
>
<
Text
style
=
{
styles
.
year
}
>
{
item
.
year
}
<
/Text
>
<
/View
>
)}
/
>
<
/View
>
);
};
export
default
CropRotationResponse
;
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
1
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
},
heading
:
{
fontSize
:
24
,
fontWeight
:
'
bold
'
,
marginBottom
:
20
,
},
cropItem
:
{
flexDirection
:
'
row
'
,
alignItems
:
'
center
'
,
marginBottom
:
10
,
},
cropImage
:
{
width
:
50
,
height
:
50
,
marginRight
:
10
,
borderRadius
:
5
,
},
cropName
:
{
fontSize
:
16
,
fontWeight
:
'
bold
'
,
flex
:
1
,
},
year
:
{
fontSize
:
16
,
fontWeight
:
'
bold
'
,
},
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment