From c5f8863fa84e20d3b6eeca2f1e2bd5cdaced7ffc Mon Sep 17 00:00:00 2001 From: ximxim Date: Sun, 30 May 2021 23:25:06 -0400 Subject: [PATCH] fix: minox crash fix --- src/hooks/useRNShare.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/useRNShare.ts b/src/hooks/useRNShare.ts index 94550d5..f221a15 100644 --- a/src/hooks/useRNShare.ts +++ b/src/hooks/useRNShare.ts @@ -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,