Open kukadiyaAni opened 9 months ago
I got an error in the blow line
[iv.layer renderInContext:pdfContext];
error is: [UIImageView _invalidateImageLayouts] must be called on the main queue
const options = { imagePaths: images.map(image => image.path), name: "test", maxSize: { width: 400, height: Math.round( (Dimensions.get('window').height / Dimensions.get('window').width) * 400, ), }, }; const pdf = await RNImageToPdf.createPDFbyImages(options);
System: OS: macOS 14.1.1 CPU: (12) arm64 Apple M2 Pro Memory: 104.55 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.13.0/bin/yarn npm: 9.6.4 - ~/Project/ReactNative/FaxApp/node_modules/.bin/npm Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2 Android SDK: API Levels: 28, 30, 31, 33, 34 Build Tools: 30.0.3, 33.0.0, 34.0.0 System Images: android-34 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: 15.2/15C500b - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.2 => 0.66.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
library version: 1.2.0
iOS: 16.0
Summary
I got an error in the blow line
[iv.layer renderInContext:pdfContext];
error is: [UIImageView _invalidateImageLayouts] must be called on the main queue
Reproducible repository
Environment info
System: OS: macOS 14.1.1 CPU: (12) arm64 Apple M2 Pro Memory: 104.55 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.13.0/bin/yarn npm: 9.6.4 - ~/Project/ReactNative/FaxApp/node_modules/.bin/npm Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2 Android SDK: API Levels: 28, 30, 31, 33, 34 Build Tools: 30.0.3, 33.0.0, 34.0.0 System Images: android-34 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10671973 Xcode: 15.2/15C500b - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.2 => 0.66.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
library version: 1.2.0
iOS: 16.0