Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
6bafb50c
Commit
6bafb50c
authored
Apr 24, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename AppTheme -> Theme
parent
0fd284c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
App.tsx
App.tsx
+1
-1
Box.tsx
src/components/bases/Box.tsx
+2
-2
Text.tsx
src/components/bases/Text.tsx
+2
-2
Theme.tsx
src/themes/Theme.tsx
+1
-1
No files found.
App.tsx
View file @
6bafb50c
import
theme
from
"@/themes/Theme"
;
import
Text
from
"@components/bases/Text"
;
import
Text
from
"@components/bases/Text"
;
import
{
ThemeProvider
}
from
"@shopify/restyle"
;
import
{
ThemeProvider
}
from
"@shopify/restyle"
;
import
theme
from
"@themes/AppTheme"
;
import
{
StatusBar
}
from
"expo-status-bar"
;
import
{
StatusBar
}
from
"expo-status-bar"
;
import
{
StyleSheet
,
View
}
from
"react-native"
;
import
{
StyleSheet
,
View
}
from
"react-native"
;
...
...
src/components/bases/Box.tsx
View file @
6bafb50c
import
type
{
Theme
}
from
"@/themes/Theme"
;
import
{
createBox
}
from
"@shopify/restyle"
;
import
{
createBox
}
from
"@shopify/restyle"
;
import
type
{
AppTheme
}
from
"@themes/AppTheme"
;
const
Box
=
createBox
<
App
Theme
>
();
const
Box
=
createBox
<
Theme
>
();
export
default
Box
;
export
default
Box
;
src/components/bases/Text.tsx
View file @
6bafb50c
import
type
{
Theme
}
from
"@/themes/Theme"
;
import
{
createText
}
from
"@shopify/restyle"
;
import
{
createText
}
from
"@shopify/restyle"
;
import
type
{
AppTheme
}
from
"@themes/AppTheme"
;
const
Text
=
createText
<
App
Theme
>
();
const
Text
=
createText
<
Theme
>
();
export
default
Text
;
export
default
Text
;
src/themes/
App
Theme.tsx
→
src/themes/Theme.tsx
View file @
6bafb50c
...
@@ -39,5 +39,5 @@ const theme = createTheme({
...
@@ -39,5 +39,5 @@ const theme = createTheme({
},
},
});
});
export
type
App
Theme
=
typeof
theme
;
export
type
Theme
=
typeof
theme
;
export
default
theme
;
export
default
theme
;
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