RN version: 0.61
When installing the package, it is automatically linked and added in Podfile and in XCode I don't have anything in Libaries for doing step 1.
In my RN project, when I'm trying to use the method I get Cannot read property 'showPreview' of undefined and it seems that in index.js file from the module FilePreviewHelper is undefined.
import { NativeModules } from 'react-native';
const { FilePreviewHelper } = NativeModules;
function showPreview(path, showPrintButton = true, showBlackStatusBar = true) {
// FilePreviewHelper is undefined
FilePreviewHelper.showPreview(path, showPrintButton, showBlackStatusBar);
}
Is there any additional step I should do?
RN version: 0.61
When installing the package, it is automatically linked and added in Podfile and in XCode I don't have anything in Libaries for doing step 1.
In my RN project, when I'm trying to use the method I get
Cannot read property 'showPreview' of undefinedand it seems that in index.js file from the module FilePreviewHelper is undefined.Is there any additional step I should do?