Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Eirik Martin Danielsen
Salamander - APP
Commits
4acda48b
Commit
4acda48b
authored
Feb 15, 2021
by
Andrea Magnussen
Browse files
Merge branch '3-edit-start-screen-test' into 'master'
Resolve "Edit start screen test" Closes
#3
See merge request
!3
parents
c31f3947
210d6b9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
salamander-app/App.js
View file @
4acda48b
import
{
StatusBar
}
from
'
expo-status-bar
'
;
import
{
StatusBar
}
from
'
expo-status-bar
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
StyleSheet
,
Text
,
View
}
from
'
react-native
'
;
import
{
StyleSheet
,
Text
,
View
}
from
'
react-native
'
;
import
MyButton
from
'
./components/MyButton
'
;
export
default
function
App
()
{
export
default
function
App
()
{
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
Text
>
Open
up
App
.
js
to
start
working
on
your
app
!<
/Text
>
<
Text
>
Test
<
/Text
>
<
MyButton
/>
<
StatusBar
style
=
"
auto
"
/>
<
StatusBar
style
=
"
auto
"
/>
<
/View
>
<
/View
>
);
);
...
...
salamander-app/components/MyButton.js
0 → 100644
View file @
4acda48b
import
*
as
React
from
'
react
'
;
import
{
Button
}
from
'
react-native-paper
'
;
const
MyButton
=
()
=>
(
<
Button
icon
=
"
camera
"
mode
=
"
contained
"
onPress
=
{()
=>
console
.
log
(
'
Pressed
'
)}
>
Press
me
<
/Button
>
);
export
default
MyButton
;
\ No newline at end of file
Write
Preview
Supports
Markdown
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