diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f297a09d..0d31e5c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,7 +113,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@master with: name: web-build path: web-build/ diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index f66c6cb6..727afbbb 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -59,7 +59,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@master with: name: web-build path: web-build/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d97f54d7..6aa7c7b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,13 +57,13 @@ jobs: - name: 📱 Upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: app-android path: app-build.aab - name: 📱 Upload binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@master with: name: app-android path: app-build.apk diff --git a/src/screens/RecipeScreen.tsx b/src/screens/RecipeScreen.tsx index 0b4a9cce..6b8a6247 100644 --- a/src/screens/RecipeScreen.tsx +++ b/src/screens/RecipeScreen.tsx @@ -13,6 +13,7 @@ import {MainNavigationProps} from '../navigation/NavigationRoutes'; import {fetchSingleRecipe} from '../redux/features/recipesSlice'; import {useAppDispatch, useAppSelector} from '../redux/hooks'; import CentralStyles from '../styles/CentralStyles'; +import { useKeepAwake } from 'expo-keep-awake'; type Props = NativeStackScreenProps; @@ -26,6 +27,8 @@ export const RecipeScreen = (props: Props) => { const theme = useTheme(); + useKeepAwake(); + useEffect(() => { // Load recipe if recipe id of screen has changed or screen is navigated to