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
460773c6
Commit
460773c6
authored
Oct 07, 2021
by
IT18111170-Silva S.H.I
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created: IOT page basic
parent
896c69b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
+83
-0
screen/IotScreen.js
screen/IotScreen.js
+83
-0
No files found.
screen/IotScreen.js
0 → 100644
View file @
460773c6
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
{
StyleSheet
,
Button
,
TextInput
,
View
,
Text
,
TouchableOpacity
,
ImageBackground
,
Image
}
from
'
react-native
'
;
import
{
Formik
}
from
'
formik
'
;
import
{
Entypo
}
from
'
@expo/vector-icons
'
;
import
{
MaterialIcons
}
from
'
@expo/vector-icons
'
;
import
{
Ionicons
}
from
'
@expo/vector-icons
'
;
import
{
AntDesign
}
from
'
@expo/vector-icons
'
;
import
*
as
ImagePicker
from
'
expo-image-picker
'
;
import
{
BottomTab
}
from
"
../Navigations/BottomTab
"
;
import
axios
from
'
axios
'
;
export
function
IotScreen
({
navigation
})
{
const
[
titleTemp
,
setTitleTemp
]
=
useState
(
"
27C
"
);
const
[
titleSoil
,
setTitleSoil
]
=
useState
(
"
Dry
"
);
const
[
titleWether
,
setTitlewether
]
=
useState
(
"
Sunny
"
);
const
bodyText
=
"
This is not really a bird nest.
"
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
ImageBackground
source
=
{
require
(
'
../assets/signup11.jpg
'
)}
style
=
{
styles
.
images
}
>
<
Text
style
=
{
styles
.
Mainheading
}
>
Welcome
to
IOT
<
/Text
>
<
Text
style
=
{
styles
.
heading
}
>
<
Text
>
Temperature
:
{
titleTemp
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
heading
}
>
<
Text
>
Soil
Condition
:
{
titleSoil
}
<
/Text
>
<
/Text
>
<
Text
style
=
{
styles
.
headingclimate
}
>
<
Text
>
Climate
:
{
titleWether
}
<
/Text
>
<
/Text
>
<
BottomTab
/>
<
/ImageBackground
>
<
/View
>
);
}
const
styles
=
StyleSheet
.
create
({
heading
:{
textAlign
:
'
center
'
,
color
:
'
black
'
,
fontWeight
:
'
bold
'
,
// padding: 10,
fontSize
:
20
,
// marginBottom:30
},
headingclimate
:{
textAlign
:
'
center
'
,
color
:
'
black
'
,
fontWeight
:
'
bold
'
,
// padding: 10,
fontSize
:
20
,
marginBottom
:
430
},
container
:
{
flex
:
1
,
color
:
'
#333
'
,
// padding: 10,
width
:
"
100%
"
,
// justifyContent: 'flex-start',
alignContent
:
'
stretch
'
,
},
images
:
{
height
:
'
100%
'
,
justifyContent
:
'
center
'
},
Mainheading
:{
textAlign
:
'
center
'
,
color
:
'
black
'
,
fontWeight
:
'
bold
'
,
padding
:
10
,
fontSize
:
30
,
marginTop
:
50
}
});
\ 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