Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
youzarsiph committed Aug 25, 2024
1 parent 34c3458 commit ae16b2b
Show file tree
Hide file tree
Showing 6 changed files with 2,385 additions and 1,703 deletions.
39 changes: 30 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,36 @@ These instructions will get you a copy of the project up and running on your loc

### Installation

1. Clone the repo
```sh
git clone https://github.com/youzarsiph/expo-react-native-paper.git
```
2. Open `package.json` and update the `name` field to match your app's name
3. Install NPM packages
```sh
npm install
```
Clone the repo:

```bash
git clone https://github.com/youzarsiph/expo-react-native-paper.git
```

Open `package.json` and update the `name` field to match your app's name:

```jsonc
{
// Change the following line
"name": "expo-react-native-paper",
"main": "expo-router/entry",
"version": "1.0.0",
...
}

```

Install NPM packages:

```bash
npm install
```

Run the app:

```bash
npm start
```

## Built With

Expand Down
6 changes: 4 additions & 2 deletions app/(tabs)/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const Settings = () => {
}, [])

const themeColors =
Colors[settings.theme === 'auto' ? colorScheme ?? 'light' : settings.theme]
Colors[
settings.theme === 'auto' ? (colorScheme ?? 'light') : settings.theme
]

return (
<Surface style={{ flex: 1 }}>
Expand Down Expand Up @@ -192,7 +194,7 @@ const Settings = () => {
color={
Colors[
settings.theme === 'auto'
? colorScheme ?? 'light'
? (colorScheme ?? 'light')
: settings.theme
][settings.color]['primary']
}
Expand Down
2 changes: 1 addition & 1 deletion app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const RootLayoutNav = () => {
<PaperProvider
theme={
Themes[
settings.theme === 'auto' ? colorScheme ?? 'dark' : settings.theme
settings.theme === 'auto' ? (colorScheme ?? 'dark') : settings.theme
][settings.color]
}
>
Expand Down
6 changes: 4 additions & 2 deletions app/drawer/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const Settings = () => {
}, [])

const themeColors =
Colors[settings.theme === 'auto' ? colorScheme ?? 'light' : settings.theme]
Colors[
settings.theme === 'auto' ? (colorScheme ?? 'light') : settings.theme
]

return (
<Surface style={{ flex: 1 }}>
Expand Down Expand Up @@ -192,7 +194,7 @@ const Settings = () => {
color={
Colors[
settings.theme === 'auto'
? colorScheme ?? 'light'
? (colorScheme ?? 'light')
: settings.theme
][settings.color]['primary']
}
Expand Down
Loading

0 comments on commit ae16b2b

Please sign in to comment.