Skip to content

Commit

Permalink
fix(android): newArch issue with no feedback on android (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactor authored Aug 28, 2024
1 parent b48d5b4 commit 32df06a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Children, ReactNode } from 'react';
import { StyleSheet, View } from 'react-native';
import { Platform, StyleSheet, View } from 'react-native';

export const LEGACY_childrenWithOverriddenStyle = (children?: ReactNode) => {
return Children.map(children, (child) => {
Expand Down Expand Up @@ -29,6 +29,7 @@ export const childrenWithOverriddenStyle = (
height: '100%',
width: '100%',
paddingHorizontal: pageMargin / 2,
position: Platform.OS === 'android' ? 'absolute' : undefined,
}}
collapsable={false}
>
Expand Down

0 comments on commit 32df06a

Please sign in to comment.