chore(example): match UI with native android example#1907
chore(example): match UI with native android example#1907sherwinski wants to merge 9 commits intomainfrom
Conversation
26d3bfe to
b2c25a9
Compare
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
|
@claude review this PR for bare-bones React Native app best practices |
|
Claude finished @sherwinski's task in 1m 50s —— View job React Native Best Practices Review
SummaryThis PR significantly expands the example app from a simple demo to a comprehensive SDK showcase. While the implementation is solid overall, there are several concerns about whether this qualifies as "bare-bones" given the scope of changes (10,605 additions across 50 files). ✅ Strengths1. Good TypeScript Usage
2. Well-Structured Components
3. State Management
4. Security Awareness
5. Event Cleanup
|
|
Can you rebase |
- `components/dialogs/LoginUserDialog.tsx`: New modal dialog for user login with: - Title: "External User Id" - Text input prepopulated with "test" - "Login" and "Cancel" buttons - Calls `OneSignal.login()` on confirm - Change title on buttons to better match native Android example app
- Fixed the backdrop - Now uses a single Pressable that properly fills the entire screen with the semi-transparent overlay - Wider dialog - Increased width from 80% to 85% - Better structure - The backdrop handles dismiss-on-outside-tap, while the dialog container uses stopPropagation() to prevent accidental closes - Adjusted styling - Slightly reduced border radius (4 instead of 8) and adjusted padding to better match Material Design dialogs
- Red background buttons - Changed from gray (Colors.background) to red (Colors.primary) - White text - Changed title color from dark to white - Updated section titles - "Send Push Notification" and "Send In-App Message" to match native - Larger buttons - Increased minHeight from 80 to 100 - Larger icons - Increased icon font size from 32 to 36 - Bolder text - Changed font weight to bold and size to 14 - Removed Card wrapper - Using a simpler container with margins, similar to the native app layout - Improved spacing - Better gap between buttons using marginBottom and justifyContent: 'space-between'
0ebd0de to
bbe7ca0
Compare
|
@fadi-george done |
|
Why do we need the rest api key in Config.ts? |
|
Nit: Maybe we can all have the demo example named as |
Removed |
Description
One Line Summary
Updates the React Native example app to more closely follow the appearance and behavior of the Android-SDK.
Details
Motivation
To standardize testing, we want a consistent example app that ensures that this SDK exposes and wraps the correct OneSignal APIs.
Scope
Only affects the example app included in this repository
Testing
Unit testing
OPTIONAL - Explain unit tests added, if not clear in the code.
Manual testing
RECOMMEND - OPTIONAL - Explain what scenarios were tested and the environment.
Example: Tested opening a notification while the app was foregrounded, app build with Android Studio 2020.3 with a fresh install of the OneSignal example app on a Pixel 6 with Android 12.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is