Skip to content

Problem when using pods linking #2

@elizamaria

Description

@elizamaria

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions