Skip to content

Commit

Permalink
fix: minox crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ximxim committed May 31, 2021
1 parent 9869064 commit c5f8863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useRNShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const useRNShare = ({ files }: IUseRNShareProps) => {
],
devNotes,
});
const Share = require('react-native-share').default;

const Share = require(require.resolve('react-native-share')).default;
Share.open({
title: 'Share file',
failOnCancel: false,
Expand Down

0 comments on commit c5f8863

Please sign in to comment.