Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/embedded/components/IterableEmbeddedNotification.tsx

This file was deleted.

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:
Copy link
Member

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.

boxShadow as a string is a web/CSS property. In React Native, you'd typically use elevation (Android) and shadowColor/shadowOffset/shadowOpacity/shadowRadius (iOS). This will work in RN 0.76+ with the new architecture, but if you're targeting older versions it's a no-op.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call! Updating

`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,
},
});
Loading
Loading