Support for React Native New Architecture
Will react-native-pdf-renderer support React Native's new architecture ? If not yet, are there plans to implement it, and is there an estimated timeline?
Thanks!
I have tried the new architecture in the past, but due to the lack of support from the React Native team and poor documentation, I haven't been able to find a suitable replacement for some of the APIs used in this library, such as event emission from native code to JavaScript. As a result, I've decided to give up.
With RN 0.76, things may have changed, but I need to review it again.
@douglasjunior Thank you for your response.
I'd appreciate any updates or an estimated timeline.
@douglasjunior Could you please provide any updates?
@Mahmood-AlHajjo in case it helps !
I managed to use this package with the new architecture using the Interop Layer.
You will have to edit react-native.config.js
module.exports = {
project:{
android: {
unstable_reactLegacyComponentNames: [ "RNPdfRendererView" ]
},
ios: {
unstable_reactLegacyComponentNames: [ "RNPdfRendererView" ]
}
},
};
@douglasjunior can that be added to the documentation as a workaround while waiting for new architecture support 🙏
Let us know if help is needed supporting the new architecture.
After 8 hours of word and a big fight with the lack of information in the RN new architecture docs.
New architecture is here: https://github.com/douglasjunior/react-native-pdf-renderer/releases/tag/2.0.0