feat(mobile): set up notifications, TransactionItem, history & success screens#412
Open
BashMan11 wants to merge 1 commit into
Open
feat(mobile): set up notifications, TransactionItem, history & success screens#412BashMan11 wants to merge 1 commit into
BashMan11 wants to merge 1 commit into
Conversation
…lockHaven-Labs#272 BlockHaven-Labs#273 - BlockHaven-Labs#273: Add expo-notifications plugin and android.useNextNotificationsApi to app.json; implement registerForPushNotificationsAsync and scheduleLocalNotification in mobile/services/notifications.ts - BlockHaven-Labs#272: Create TransactionItem component with type icons, formatXLM amounts, and relative dates in mobile/components/transactions/ - BlockHaven-Labs#270: Build paginated transaction history screen with pull-to-refresh, load-more, empty state, and loading skeleton in mobile/app/transactions/index.tsx - BlockHaven-Labs#269: Build transaction success screen with explorer link, truncated hash display, and back-gesture disabled in mobile/app/transaction/success.tsx Closes BlockHaven-Labs#269, Closes BlockHaven-Labs#270, Closes BlockHaven-Labs#272, Closes BlockHaven-Labs#273
|
@BashMan11 is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Resolves 4 open mobile issues in one PR.
Changes
#273 – Set up Expo Notifications
expo-notificationsto thepluginsarray inmobile/app.jsonandroid.useNextNotificationsApi: trueinmobile/app.jsonmobile/services/notifications.tsimplementsregisterForPushNotificationsAsync()(requests permission, returns Expo push token, logs it on app start) andscheduleLocalNotification(title, body, trigger)#272 – TransactionItem component
mobile/components/transactions/TransactionItem.tsx: typed props (type,description,amount,date), type icons (↑ red / ↓ green / − grey),formatXLMamount, relative date helper, wrapped inReact.memomobile/components/transactions/index.ts: re-exports component and type#270 – Transaction history screen
mobile/app/transactions/index.tsx:FlatListwithTransactionItemrows, pull-to-refresh,onEndReachedpagination,ActivityIndicatorloading state,EmptyStatewhen list is empty#269 – Transaction success screen
mobile/app/transaction/success.tsx: acceptstxHashroute param, displays truncated hash, 'View on Stellar Expert' link viaLinking.openURL, 'Done' button navigates to/(tabs)withrouter.replace, back gesture disabled viaStack.Screen gestureEnabled: falseTesting
Closes #269
Closes #270
Closes #272
Closes #273