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
6c30002e
Commit
6c30002e
authored
Sep 03, 2023
by
danushka9999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crop plan response finalization
parent
292f0939
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Soil Analyzer and Optimized Crop Finder - IT20233808/RP-MobileAPP-FE/components/cropRotationPlanner/CropRotationResponse.js
...FE/components/cropRotationPlanner/CropRotationResponse.js
+3
-1
No files found.
Soil Analyzer and Optimized Crop Finder - IT20233808/RP-MobileAPP-FE/components/cropRotationPlanner/CropRotationResponse.js
View file @
6c30002e
import
React
from
'
react
'
;
import
{
View
,
Text
,
FlatList
,
Image
,
StyleSheet
}
from
'
react-native
'
;
import
cropImages
from
'
../common/Images
'
;
const
CropRotationResponse
=
({
route
})
=>
{
const
{
response
}
=
route
.
params
;
...
...
@@ -14,10 +15,11 @@ const CropRotationResponse = ({ route }) => {
<
View
style
=
{
styles
.
cropItem
}
>
<
Image
style
=
{
styles
.
cropImage
}
source
=
{
{
uri
:
`https://example.com/api/crop-images/
${
item
.
cropName
}
`
}
}
source
=
{
cropImages
[
item
.
cropName
]
}
/
>
<
Text
style
=
{
styles
.
cropName
}
>
{
item
.
cropName
}
<
/Text
>
<
Text
style
=
{
styles
.
year
}
>
{
item
.
year
}
<
/Text
>
<
Text
style
=
{
styles
.
year
}
>
{
item
.
Sequence
}
<
/Text
>
<
/View
>
)}
/
>
...
...
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