-
Notifications
You must be signed in to change notification settings - Fork 44
[SDK-248] notification-component #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lposen
merged 16 commits into
emb-ootb/master
from
loren/embedded/SDK-248-notification-component
Mar 13, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
95e8d92
feat: add IterableEmbeddedNotification component for displaying notif…
lposen ef7cf1d
feat: add utility functions and styles for embedded views
lposen 980123d
feat: implement useEmbeddedView hook for managing embedded view lifec…
lposen 917835b
feat: enhance IterableEmbeddedNotification with styles and button fun…
lposen 4a47ef2
feat: add hooks for managing embedded view styles and media
lposen f0cdd24
Merge branch 'loren/embedded/SDK-367-parse-media-for-components' into…
lposen 8df3131
test: add unit tests for IterableEmbeddedNotification component
lposen 47a283d
refactor: remove media display logic
lposen 7278e0c
test: add unit tests for useEmbeddedView hook functionality
lposen 4b2dff4
Merge branch 'loren/embedded/SDK-367-parse-media-for-components' into…
lposen 4623abe
Merge branch 'emb-ootb/master' into loren/embedded/SDK-248-notificati…
lposen 82b2cda
feat: enhance IterableEmbeddedNotification styles with shadow propert…
lposen 7890401
Merge branch 'emb-ootb/master' into loren/embedded/SDK-248-notificati…
lposen 094fa0c
Merge branch 'emb-ootb/master' into loren/embedded/SDK-248-notificati…
lposen 028323f
refactor: update default props for onButtonClick and onMessageClick i…
lposen 9b76334
Apply suggestion from @joaodordio
lposen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
src/embedded/components/IterableEmbeddedNotification/IterableEmbeddedNotification.styles.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import { StyleSheet } from 'react-native'; | ||
|
|
||
| const SHADOW_COLOR = 'rgba(0, 0, 0, 0.06)'; | ||
|
|
||
| export const styles = StyleSheet.create({ | ||
| body: { | ||
| alignSelf: 'stretch', | ||
| fontSize: 14, | ||
| fontWeight: '400', | ||
| lineHeight: 20, | ||
| }, | ||
| bodyContainer: { | ||
| display: 'flex', | ||
| flexDirection: 'column', | ||
| flexGrow: 1, | ||
| flexShrink: 1, | ||
| gap: 4, | ||
| width: '100%', | ||
| }, | ||
| button: { | ||
| borderRadius: 32, | ||
| gap: 8, | ||
| paddingHorizontal: 12, | ||
| paddingVertical: 8, | ||
| }, | ||
| buttonContainer: { | ||
| alignItems: 'flex-start', | ||
| alignSelf: 'stretch', | ||
| display: 'flex', | ||
| flexDirection: 'row', | ||
| gap: 12, | ||
| width: '100%', | ||
| }, | ||
| buttonText: { | ||
| fontSize: 14, | ||
| fontWeight: '700', | ||
| lineHeight: 20, | ||
| }, | ||
| container: { | ||
| alignItems: 'flex-start', | ||
| borderStyle: 'solid', | ||
| boxShadow: | ||
| `0 1px 1px 0 ${SHADOW_COLOR}, 0 0 2px 0 ${SHADOW_COLOR}, 0 0 1px 0 ${SHADOW_COLOR}`, | ||
| display: 'flex', | ||
| elevation: 1, | ||
| flexDirection: 'column', | ||
| gap: 8, | ||
| justifyContent: 'center', | ||
| padding: 16, | ||
| shadowColor: SHADOW_COLOR, | ||
| shadowOffset: { width: 0, height: 1 }, | ||
| shadowOpacity: 0.9, | ||
| shadowRadius: 2, | ||
| width: '100%', | ||
| }, | ||
| title: { | ||
| fontSize: 16, | ||
| fontWeight: '700', | ||
| lineHeight: 24, | ||
| }, | ||
| }); | ||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AI flagged this as boxShadow not working in earlier versions than RN 0.76.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call! Updating