about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/expo-bluesky-translate/src/ExpoBlueskyTranslateView.ios.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/expo-bluesky-translate/src/ExpoBlueskyTranslateView.ios.tsx b/modules/expo-bluesky-translate/src/ExpoBlueskyTranslateView.ios.tsx
index daddfa028..290fabd30 100644
--- a/modules/expo-bluesky-translate/src/ExpoBlueskyTranslateView.ios.tsx
+++ b/modules/expo-bluesky-translate/src/ExpoBlueskyTranslateView.ios.tsx
@@ -15,7 +15,10 @@ export function NativeTranslationView() {
   return <NativeView />
 }
 
-export const isAvailable = Number(Platform.Version) >= 17.4
+// can be something like "17.5.1", so just take the first two parts
+const version = String(Platform.Version).split('.').slice(0, 2).join('.')
+
+export const isAvailable = Number(version) >= 17.4
 
 // https://en.wikipedia.org/wiki/Translate_(Apple)#Languages
 const SUPPORTED_LANGUAGES = [