Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
21_22-J 38
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
21_22-J 38
21_22-J 38
Commits
c7b7716a
Commit
c7b7716a
authored
Feb 11, 2022
by
W.D.R.P. Sandeepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add table.js file
parent
383cab84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
2 deletions
+58
-2
frontend/src/component/TableList.js
frontend/src/component/TableList.js
+53
-0
frontend/src/screen/activity/Blue.js
frontend/src/screen/activity/Blue.js
+5
-2
No files found.
frontend/src/component/TableList.js
0 → 100644
View file @
c7b7716a
import
React
from
'
react
'
;
import
{
View
,
StyleSheet
,
ScrollView
}
from
'
react-native
'
;
import
{
Table
,
TableWrapper
,
Row
,
Rows
,
Col
}
from
'
react-native-table-component
'
;
const
CONTENT
=
{
tableHead
:
[
'
Date
'
,
'
Time
'
,
'
Name
'
,
'
Result
'
],
tableData
:
[
[
'
1 jan 2022
'
,
'
2s
'
,
'
Red
'
,
'
Good
'
],
[
'
2 jan 2022
'
,
'
2s
'
,
'
Green
'
,
'
Good
'
],
[
'
3 jan 2022
'
,
'
2s
'
,
'
Black
'
,
'
Good
'
],
[
'
4 jan 2022
'
,
'
2s
'
,
'
White
'
,
'
Good
'
],
[
'
5 jan 2022
'
,
'
2s
'
,
'
Blue
'
,
'
Good
'
],
[
'
6 jan 2022
'
,
'
2s
'
,
'
Yellow
'
,
'
Good
'
],
],
};
export
default
function
App
()
{
return
(
<
ScrollView
>
<
View
style
=
{
styles
.
container
}
>
<
Table
borderStyle
=
{{
borderWidth
:
3
,
borderColor
:
'
#fff
'
}}
>
<
Row
data
=
{
CONTENT
.
tableHead
}
flexArr
=
{[
1
,
1
,
1
,
1
]}
style
=
{
styles
.
head
}
textStyle
=
{
styles
.
text
}
/
>
<
TableWrapper
style
=
{
styles
.
wrapper
}
>
<
Rows
data
=
{
CONTENT
.
tableData
}
flexArr
=
{[
1
,
1
,
1
,
1
]}
style
=
{
styles
.
row
}
textStyle
=
{
styles
.
text
}
/
>
<
/TableWrapper
>
<
/Table
>
<
/View
>
<
/ScrollView
>
);
}
const
styles
=
StyleSheet
.
create
({
container
:
{
flex
:
0
,
paddingTop
:
20
,
paddingLeft
:
60
,
paddingRight
:
60
,
marginTop
:
0
,
},
head
:
{
height
:
60
,},
wrapper
:
{
flexDirection
:
'
row
'
},
title
:
{
flex
:
1
,
},
row
:
{
height
:
40
},
text
:
{
textAlign
:
'
center
'
,
fontSize
:
20
,
color
:
'
#fff
'
,
fontFamily
:
'
Menlo
'
},
});
\ No newline at end of file
frontend/src/screen/activity/Blue.js
View file @
c7b7716a
...
...
@@ -15,7 +15,8 @@ import {
SafeAreaView
,
ImageBackground
,
Button
,
Image
Image
,
StatusBar
}
from
'
react-native
'
import
Permissions
from
'
react-native-permissions
'
;
...
...
@@ -31,6 +32,8 @@ export default function Blue(color) {
React
.
useEffect
(()
=>
{
StatusBar
.
setHidden
(
true
);
audioInit
();
const
unsubscribe
=
navigation
.
addListener
(
"
focus
"
,
()
=>
{
...
...
@@ -129,7 +132,7 @@ export default function Blue(color) {
try
{
const
res
=
await
client
.
post
(
'
http://192.168.8.101:5000/
predict
'
,
formData
,
{
const
res
=
await
client
.
post
(
'
predict
'
,
formData
,
{
headers
:
{
Accept
:
'
application/json
'
,
...
...
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