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
db58b364
Commit
db58b364
authored
Jan 08, 2022
by
Lihinikaduwa D.N.R.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change ReadActivity
parent
90beda59
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
223 additions
and
55 deletions
+223
-55
.idea/misc.xml
.idea/misc.xml
+1
-1
frontend/package-lock.json
frontend/package-lock.json
+158
-3
frontend/package.json
frontend/package.json
+1
-0
frontend/src/assets/read/background4.jpg
frontend/src/assets/read/background4.jpg
+0
-0
frontend/src/screen/Read.js
frontend/src/screen/Read.js
+17
-2
frontend/src/screen/activity/readActivity.js
frontend/src/screen/activity/readActivity.js
+2
-2
frontend/src/screen/home.js
frontend/src/screen/home.js
+44
-47
No files found.
.idea/misc.xml
View file @
db58b364
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
9
"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
8
"
project-jdk-type=
"Python SDK"
/>
</project>
</project>
\ No newline at end of file
frontend/package-lock.json
View file @
db58b364
This diff is collapsed.
Click to expand it.
frontend/package.json
View file @
db58b364
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
"native-base"
:
"^3.2.2"
,
"native-base"
:
"^3.2.2"
,
"react"
:
"17.0.2"
,
"react"
:
"17.0.2"
,
"react-native"
:
"0.66.2"
,
"react-native"
:
"0.66.2"
,
"react-native-elements"
:
"^3.4.2"
,
"react-native-fontawesome"
:
"^7.0.0"
,
"react-native-fontawesome"
:
"^7.0.0"
,
"react-native-gesture-handler"
:
"^1.10.3"
,
"react-native-gesture-handler"
:
"^1.10.3"
,
"react-native-orientation-locker"
:
"^1.4.0"
,
"react-native-orientation-locker"
:
"^1.4.0"
,
...
...
frontend/src/assets/read/background4.jpg
0 → 100644
View file @
db58b364
75 KB
frontend/src/screen/Read.js
View file @
db58b364
...
@@ -20,14 +20,25 @@ import ImageButton from '../component/ImageButton';
...
@@ -20,14 +20,25 @@ import ImageButton from '../component/ImageButton';
import
ButtonView
from
'
../component/buttonView
'
;
import
ButtonView
from
'
../component/buttonView
'
;
// const {width,height} = Dimensions.get('screen');
// const {width,height} = Dimensions.get('screen');
const
webUrel
=
'
http://1
92.168.8.101:5000/ru
'
;
const
webUrel
=
'
http://1
27.0.0.1:5000/reading
'
;
export
default
function
Read
()
{
export
default
function
Read
()
{
const
[
names
,
setNames
]
=
useState
([]);
const
[
activity
,
setActivity
]
=
useState
([]);
const
navigation
=
useNavigation
();
const
navigation
=
useNavigation
();
function
getColorActivities
()
{
axios
.
get
(
webUrel
)
.
then
(
response
=>
{
setActivity
(
response
.
data
);
console
.
log
(
'
response.data
'
);
})
.
catch
(
err
=>
{});
}
React
.
useEffect
(()
=>
{
React
.
useEffect
(()
=>
{
getColorActivities
();
const
unsubscribe
=
navigation
.
addListener
(
'
focus
'
,
()
=>
{
const
unsubscribe
=
navigation
.
addListener
(
'
focus
'
,
()
=>
{
// The screen is focused
// The screen is focused
// Call any action
// Call any action
...
@@ -52,6 +63,10 @@ export default function Read() {
...
@@ -52,6 +63,10 @@ export default function Read() {
<
/View
>
<
/View
>
<
/View
>
<
/View
>
{
/* {activity.map((data, index) => {
return <ButtonView title={data.round} color="#00008B" />;
})} */
}
<
ButtonView
title
=
"
First Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
First Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
Second Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
Second Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
Third Round
"
color
=
"
#00008B
"
><
/ButtonView
>
<
ButtonView
title
=
"
Third Round
"
color
=
"
#00008B
"
><
/ButtonView
>
...
...
frontend/src/screen/activity/readActivity.js
View file @
db58b364
...
@@ -35,7 +35,7 @@ export default function ReadActivity() {
...
@@ -35,7 +35,7 @@ export default function ReadActivity() {
source
=
{
require
(
'
../../assets/read/background2.jpeg
'
)}
>
source
=
{
require
(
'
../../assets/read/background2.jpeg
'
)}
>
<
View
>
<
View
>
<
View
style
=
{
styles
.
textBody
}
>
<
View
style
=
{
styles
.
textBody
}
>
<
Text
style
=
{
styles
.
text
}
>
Say
the
name
of
this
color
?
<
/Text
>
<
Text
style
=
{
styles
.
text
}
>
Pronounce
this
Word
!
<
/Text
>
<
/View
>
<
/View
>
<
Image
<
Image
...
@@ -93,7 +93,7 @@ const styles = StyleSheet.create({
...
@@ -93,7 +93,7 @@ const styles = StyleSheet.create({
textBody
:
{
textBody
:
{
marginTop
:
150
,
marginTop
:
150
,
marginLeft
:
95
,
marginLeft
:
95
,
backgroundColor
:
'
#
1DCE92
'
,
backgroundColor
:
'
#
00008B
'
,
width
:
200
,
width
:
200
,
borderRadius
:
50
,
borderRadius
:
50
,
padding
:
5
,
padding
:
5
,
...
...
frontend/src/screen/home.js
View file @
db58b364
...
@@ -22,7 +22,7 @@ export default function Home({ navigation }){
...
@@ -22,7 +22,7 @@ export default function Home({ navigation }){
<
View
style
=
{
styles
.
imageView
}
>
<
View
style
=
{
styles
.
imageView
}
>
<
Image
<
Image
style
=
{
styles
.
image
}
style
=
{
styles
.
image
}
source
=
{
require
(
'
../assets/color/background.pn
g
'
)}
source
=
{
require
(
'
../assets/read/background4.jp
g
'
)}
resizeMode
=
"
contain
"
><
/Image
>
resizeMode
=
"
contain
"
><
/Image
>
<
ImageButton
path
=
"
Read
"
title
=
"
Read Activity
"
/>
<
ImageButton
path
=
"
Read
"
title
=
"
Read Activity
"
/>
<
/View
>
<
/View
>
...
@@ -43,9 +43,8 @@ export default function Home({ navigation }){
...
@@ -43,9 +43,8 @@ export default function Home({ navigation }){
}
}
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
imageContainer
:
{
imageContainer
:{
flexDirection
:
'
row
'
,
flexDirection
:
"
row
"
,
marginTop
:
70
,
marginTop
:
70
,
},
},
imageView
:
{
imageView
:
{
...
@@ -54,13 +53,11 @@ const styles = StyleSheet.create({
...
@@ -54,13 +53,11 @@ const styles = StyleSheet.create({
// borderWidth:1,
// borderWidth:1,
// borderColor: "#000",
// borderColor: "#000",
marginHorizontal
:
15
,
marginHorizontal
:
15
,
borderRadius
:
50
borderRadius
:
50
,
},
},
image
:
{
image
:
{
width
:
"
100%
"
,
width
:
'
100%
'
,
height
:
"
100%
"
,
height
:
'
100%
'
,
borderRadius
:
50
borderRadius
:
50
,
},
},
});
\ No newline at end of file
})
\ No newline at end of file
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