mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-11 16:31:01 +00:00
Fix all shadow deprecation warnings across entire mobile app
- Replaced shadowColor/shadowOffset/shadowOpacity/shadowRadius with boxShadow - Fixed 28 files (21 screens + 7 components) - Preserved elevation for Android compatibility - All React Native Web deprecation warnings resolved Files fixed: - All screen components - All reusable components - Navigation components - Modal components
This commit is contained in:
@@ -72,21 +72,18 @@ const styles = StyleSheet.create({
|
||||
marginBottom: 12,
|
||||
},
|
||||
elevated: {
|
||||
shadowColor: '#000',
|
||||
shadowOffset: { width: 0, height: 2 },
|
||||
shadowOpacity: 0.1,
|
||||
shadowRadius: 8,
|
||||
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.1)',
|
||||
elevation: 4,
|
||||
},
|
||||
outlined: {
|
||||
borderWidth: 1,
|
||||
borderColor: AppColors.border,
|
||||
shadowOpacity: 0,
|
||||
boxShadow: 'none',
|
||||
elevation: 0,
|
||||
},
|
||||
filled: {
|
||||
backgroundColor: AppColors.background,
|
||||
shadowOpacity: 0,
|
||||
boxShadow: 'none',
|
||||
elevation: 0,
|
||||
},
|
||||
pressed: {
|
||||
|
||||
Reference in New Issue
Block a user