Skip to content

Commit

Permalink
fix: allow setting useNativeDriver on the provider
Browse files Browse the repository at this point in the history
Fixes expo#184
  • Loading branch information
emmanuel.john committed Nov 17, 2020
1 parent 86007a3 commit 708925e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ActionSheetProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ActionSheetOptions } from './types';

interface Props {
children: React.ReactNode;
useNativeDriver?: boolean;
}

export default class ActionSheetProvider extends React.Component<Props> {
Expand All @@ -27,7 +28,7 @@ export default class ActionSheetProvider extends React.Component<Props> {
render() {
return (
<Provider value={this.getContext()}>
<ActionSheet ref={this._actionSheetRef}>
<ActionSheet ref={this._actionSheetRef} useNativeDriver={this.props.useNativeDriver}>
{React.Children.only(this.props.children)}
</ActionSheet>
</Provider>
Expand Down

0 comments on commit 708925e

Please sign in to comment.