Skip to content

'react_native_pdf_light-Swift.h' file not found while building the iOS app #27

@balasubrahmanyam2314

Description

@balasubrahmanyam2314

version installed:

"react-native": "0.83.1",
"react-native-pdf-light": "^3.0.1",
"react-native-gesture-handler": "^2.30.0",

sample code


import React from 'react';
import { ZoomPdfView } from 'react-native-pdf-light/Zoom';
import { PdfUtil } from 'react-native-pdf-light';

const source = {
  uri: 'https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf',
};

PdfUtil.getPageCount(source.uri).then(count => {
  console.log('🚀 ~ count:', count);
});

export const HelpScreen = () => {
  return (
    <ZoomPdfView
      page={1}
      source={source.uri}
      style={{ flex: 1 }}
      onLoadComplete={() => {
        console.log('🚀 ~pdf  onLoadComplete');
      }}
      onError={() => {
        console.log('🚀 ~pdf  onError');
      }}
    />
  );
};

while building the iOS application getting this error
'react_native_pdf_light-Swift.h' file not found

Please check the screenshot

Image

@alpha0010 please check and provide the solution. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions