feat: Integrate @maniac-tech/react-native-expo-read-sms at 9.1.2 on Expo SDK 54#25
Open
maniac-tech wants to merge 4 commits intomasterfrom
Open
feat: Integrate @maniac-tech/react-native-expo-read-sms at 9.1.2 on Expo SDK 54#25maniac-tech wants to merge 4 commits intomasterfrom
@maniac-tech/react-native-expo-read-sms at 9.1.2 on Expo SDK 54#25maniac-tech wants to merge 4 commits intomasterfrom
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification branch for
react-native-expo-read-smsPR #99 — confirms the library at9.1.2builds and runs correctly on Expo SDK 54 / React Native 0.81.Changes
package.json@maniac-tech/react-native-expo-read-sms:8.0.2-alpha→^9.1.2expo:^51.0.0→~54.0.0react-native:0.74.3→0.81.5react:18.2.0→19.1.0(RN 0.81 requires^19.1.0)babel-preset-expo: ~54.0.10— must now be declared explicitly (no longer bundled transitively from SDK 54)expo-asset: ~12.0.12— explicit dep required for autolinking to register theExpoAssetnative moduleexpo-splash-screen:~0.27.5→~31.0.13expo-status-bar:~1.12.1→~3.0.9expo-build-properties:~0.12.3→~1.0.10expo-dev-client— not required for library verification; app builds and runs fine without the dev menu overlayreact-native-paper,react-native-web,react-dom,expo-updatesexporeadsms-test→expo-read-sms-test-appapp.jsonsdkVersion: "54.0.0"android.permissions— now correctly declaresRECEIVE_SMSandREAD_SMS(was empty[])compileSdkVersion/targetSdkVersion: 34 → 35minSdkVersion: 23 → 24 (RN 0.81 dropped Android 6 / API 23 support)expo-assetconfig plugin entryexpo-updatesplugin,runtimeVersion,extra.eas)App.jsreact-native-paperUI with a minimal plain React Native UIcheckIfHasSMSPermission()— displays both permission flagsrequestReadSMSPermission()— triggers system dialog, then re-checks statusstartReadSMS(callback)— starts listener; logs received SMS bodystopReadSMS()— stops listener; confirms via loguseApphook dependency (previously coupled to old UI)Build Issues Encountered & Resolved
ReactNativeApplicationEntryPoint/loadReactNativeunresolvedandroid/was prebuilt with RN 0.81 template butpackage.jsonhad RN 0.79react-native:0.79.6→0.81.5react@"^19.1.0"peer dep conflictreact:19.0.0→19.1.0Cannot find module 'babel-preset-expo'babel-preset-expo: ~54.0.10as explicit depTesting
Verification Checklist
npx expo prebuild+npx expo run:androidsucceed)checkIfHasSMSPermission()— returns correct{ hasReadSmsPermission, hasReceiveSmsPermission }objectrequestReadSMSPermission()— system dialog appears; returnstruewhen grantedstartReadSMS(callback)— starts without error; callback fires withstatus === "success"[phoneNumber, messageBody]valuesstopReadSMS()— stops listener; no further callbacks after stoppingNativeEventEmitterwarnings in consoleRelated