react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

No compatible with RN-0.77

Open davidgvf opened this issue 1 year ago • 5 comments

No compatible with RN-0.77 on android:

> Task :react-native-pdf:compileReleaseJavaWithJavac FAILED
/Volumes/WD_BLACK_1TB/WWW/bildy-app/node_modules/react-native-pdf/android/src/paper/java/com/facebook/react/viewmanagers/RNPDFPdfViewManagerDelegate.java:16: error: cannot find symbol
import com.facebook.react.uimanager.BaseViewManagerInterface;
                                   ^
  symbol:   class BaseViewManagerInterface
  location: package com.facebook.react.uimanager
/Volumes/WD_BLACK_1TB/WWW/bildy-app/node_modules/react-native-pdf/android/src/paper/java/com/facebook/react/viewmanagers/RNPDFPdfViewManagerDelegate.java:18: error: cannot find symbol
public class RNPDFPdfViewManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & RNPDFPdfViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
                                                                   ^
  symbol: class BaseViewManagerInterface

davidgvf avatar Jan 22 '25 16:01 davidgvf

Thanks @davidgvf for reporting this issue.

We do are struggling with same issue.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-pdf:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Raghavendarlokineni avatar Jan 23 '25 08:01 Raghavendarlokineni

Same issue after upgrading to React Native 0.77.

error: cannot find symbol import com.facebook.react.uimanager.BaseViewManagerInterface

It is due to a change they made, as explained in the release blog

Additionally, several APIs have been removed or restricted in visibility, so they can’t be accessed anymore. Those APIs were internal and not needed to React Native developers directly. You can find the full list below:

The following classes are now either internal or have been removed, so can’t be accessed anymore: ... BaseViewManagerInterface ...

I'm hopping for a fix to complete my upgrade, thank you!

requinDr avatar Jan 23 '25 16:01 requinDr

Blocking us too

djaffer avatar Jan 25 '25 07:01 djaffer

It looks like there is already a PR related to it.

Eduardo-Queiroz avatar Jan 27 '25 14:01 Eduardo-Queiroz

This has been fixed in v6.7.7. At this time it's not showing up on the releases page, but here's the commit 🙂

tomtargosz avatar Apr 17 '25 15:04 tomtargosz