Skip to content

Commit 0bebf4e

Browse files
authored
fix: Keep screen awake when viewing a recipe (#302)
* fix: Keep screen awake when viewing a recipe * fix: ci workflow artifact down/upload
1 parent be1cc0b commit 0bebf4e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Checkout repository
114114
uses: actions/checkout@v2
115115

116-
- uses: actions/download-artifact@v2
116+
- uses: actions/download-artifact@master
117117
with:
118118
name: web-build
119119
path: web-build/

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Checkout repository
6060
uses: actions/checkout@v2
6161

62-
- uses: actions/download-artifact@v2
62+
- uses: actions/download-artifact@master
6363
with:
6464
name: web-build
6565
path: web-build/

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ jobs:
5757
5858
5959
- name: 📱 Upload binary
60-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@master
6161
with:
6262
name: app-android
6363
path: app-build.aab
6464

6565
- name: 📱 Upload binary
66-
uses: actions/upload-artifact@v2
66+
uses: actions/upload-artifact@master
6767
with:
6868
name: app-android
6969
path: app-build.apk

src/screens/RecipeScreen.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {MainNavigationProps} from '../navigation/NavigationRoutes';
1313
import {fetchSingleRecipe} from '../redux/features/recipesSlice';
1414
import {useAppDispatch, useAppSelector} from '../redux/hooks';
1515
import CentralStyles from '../styles/CentralStyles';
16+
import { useKeepAwake } from 'expo-keep-awake';
1617

1718

1819
type Props = NativeStackScreenProps<MainNavigationProps, 'RecipeScreen'>;
@@ -26,6 +27,8 @@ export const RecipeScreen = (props: Props) => {
2627

2728
const theme = useTheme();
2829

30+
useKeepAwake();
31+
2932

3033
useEffect(() => {
3134
// Load recipe if recipe id of screen has changed or screen is navigated to

0 commit comments

Comments
 (0)