Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-090 frontend
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
2021-090
2021-090 frontend
Commits
5f01fe02
Commit
5f01fe02
authored
Nov 25, 2021
by
pramod.nichelabs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get bids functionality added
parent
c5efe094
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
screen/User.Bids.Screen.js
screen/User.Bids.Screen.js
+19
-10
No files found.
screen/User.Bids.Screen.js
View file @
5f01fe02
// Example of Splash, Login and Sign Up in React Native
// https://aboutreact.com/react-native-login-and-signup/
// Import React and Component
import
React
from
'
react
'
;
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
axios
from
'
axios
'
;
import
{
View
,
StyleSheet
,
Text
,
ScrollView
}
from
'
react-native
'
;
import
{
AppContainer
}
from
'
../container/container
'
;
import
themeColors
from
'
../assets/colors
'
;
...
...
@@ -10,16 +7,28 @@ import { AuctionBottomTab } from '../Navigations/AuctionBottomTab';
import
{
AppStakeItem
}
from
'
../components/auction.stake.component
'
;
const
UserBidScreen
=
({
navigation
})
=>
{
const
[
bids
,
setBids
]
=
useState
([]);
useEffect
(()
=>
{
axios
.
get
(
"
http://127.0.0.1:8085/bids
"
)
.
then
(
async
function
(
response
)
{
setBids
(
response
.
data
);
console
.
log
(
response
.
data
);
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
},
[])
return
(
<
View
style
=
{
styles
.
container
}
>
<
AppContainer
>
<
Text
style
=
{
styles
.
auctionHeading
}
>
My
Bids
<
/Text
>
<
ScrollView
>
<
AppStakeItem
/>
<
AppStakeItem
/>
<
AppStakeItem
/>
<
AppStakeItem
/>
<
AppStakeItem
/>
{
bids
.
map
((
bid
)
=>
{
return
(
<
AppStakeItem
bid
=
{
bid
}
/
>
)
})}
<
/ScrollView
>
<
/AppContainer
>
<
AuctionBottomTab
/>
...
...
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