wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.58k stars 534 forks source link

package name missing from androidManifest causes pod install error #787

Open nikoloz110 opened 8 months ago

nikoloz110 commented 8 months ago

What react-native version are you using? 0.69.5 What react-native-pdf version are you using? 6.7.1 What platform does your issue occur on? (android/ios/both) ios Describe your issue as precisely as possible : 1) pod install fails because androidmanifest.xml missing package name. added package name from old versions package="org.wonday.pdf" and it worked again

image
zaferatli commented 8 months ago

+1

AramCanyonRanch commented 8 months ago

I have the same problem: React Native version: 0.70.5 "react-native-pdf": "^6.7.1"

cort1c commented 8 months ago

Same issue. The library cannot be installed at the moment.

react-native version: 0.70.1 react-native-pdf version: 6.7.3" platform: iOS

As a workaround, I added the following to the opening manifest tag in node_modules/react-native-pdf/android/src/main/AndroidManifest.xml.

package="org.wonday.pdf"

So the final file currently looks like:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.wonday.pdf">

</manifest>
rlankfo commented 2 months ago

Same issue. The library cannot be installed at the moment.

react-native version: 0.70.1 react-native-pdf version: 6.7.3" platform: iOS

As a workaround, I added the following to the opening manifest tag in node_modules/react-native-pdf/android/src/main/AndroidManifest.xml.

package="org.wonday.pdf"

So the final file currently looks like:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.wonday.pdf">

</manifest>

I tried this for android but I get a java compile error:

import org.wonday.pdf.RCTPdfView;
                     ^
  symbol:   class RCTPdfView
  location: package org.wonday.pdf

Were there any other steps required?