Skip to content

Commit

Permalink
bring back default useNativeDriver prop for android
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Nov 9, 2023
1 parent f4afdb4 commit 8082b7c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Modal/index.android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ AppState.addEventListener('blur', () => {

// Only want to use useNativeDriver on Android. It has strange flashes issue on IOS
// https://github.com/react-native-modal/react-native-modal#the-modal-flashes-in-a-weird-way-when-animating
function Modal(props: BaseModalProps) {
function Modal({useNativeDriver = true, ...rest}: BaseModalProps) {
return (
<BaseModal
useNativeDriver={useNativeDriver}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
{...rest}
>
{props.children}
{rest.children}
</BaseModal>
);
}
Expand Down

0 comments on commit 8082b7c

Please sign in to comment.