From edf95490ca6df3b2a98ea3366e740a47f32ce320 Mon Sep 17 00:00:00 2001 From: Quan Pham Date: Fri, 20 Sep 2024 12:07:18 +0700 Subject: [PATCH] chore(lib): fix android pipeline --- .github/workflows/ci.yml | 4 ++++ package.json | 3 +++ src/index.tsx | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21e82ff..5162652 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,10 @@ jobs: - name: Setup Android SDK uses: android-actions/setup-android@v3 + # https://github.com/react-native-community/cli/issues/2498 + - name: Fix CLI build + run: chmod u+x node_modules/@react-native-community/cli/build/*.js + - name: Finalize Android SDK run: /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" diff --git a/package.json b/package.json index 5f7c1ef..168c6bd 100644 --- a/package.json +++ b/package.json @@ -127,6 +127,9 @@ "root": true, "extends": [ "@react-native", + "prettier/prettier" + ], + "plugins": [ "prettier" ], "rules": { diff --git a/src/index.tsx b/src/index.tsx index de14246..23c9c31 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ import { NativeModules, NativeEventEmitter, Platform } from 'react-native'; const LINKING_ERROR = - `The package 'react-native-shake' doesn't seem to be linked. Make sure: \n\n` + + "The package 'react-native-shake' doesn't seem to be linked. Make sure: \n\n" + Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';