Skip to content

Commit 2d8184b

Browse files
committed
useNativeDriver should be true by default
1 parent d4a1be5 commit 2d8184b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Check [index.js](https://github.com/maxs15/react-native-modalbox/blob/master/Exa
4444
| startOpen | false | `bool` | Allow modal to appear open without animation upon first mount |
4545
| coverScreen | false | `bool` | Will use RN `Modal` component to cover the entire screen wherever the modal is mounted in the component hierarchy |
4646
| keyboardTopOffset | ios:22, android:0 | `number` | This property prevent the modal to cover the ios status bar when the modal is scrolling up because the keyboard is opening |
47-
| useNativeDriver | false | `bool` | Enables the hardware acceleration to animate the modal. Please note that enabling this can cause some flashes in a weird way when animating |
47+
| useNativeDriver | true | `bool` | Enables the hardware acceleration to animate the modal. Please note that enabling this can cause some flashes in a weird way when animating |
4848

4949
## Events
5050

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var ModalBox = createReactClass({
8585
easing: Easing.elastic(0.8),
8686
coverScreen: false,
8787
keyboardTopOffset: Platform.OS == 'ios' ? 22 : 0,
88-
useNativeDriver: false
88+
useNativeDriver: true
8989
};
9090
},
9191

0 commit comments

Comments
 (0)