bamlab / react-native-image-resizer

🗻 Resize local images with React Native
MIT License
1.61k stars 347 forks source link

[iOS] Argument X (NSNumber) of ImageResizer.createdResizedImage has unspecified nullability but React requires that all NSNumber arguments are explicitly marked as `nonnull` to ensure compatibility with Android #319

Closed nadishan closed 2 years ago

nadishan commented 2 years ago

Why am I getting below error? I have passed all arguments to createdResizedImage method. But still, I'm getting it. What would be the cause?

Argument 5 (NSNumber) of ImageResizer.createdResizedImage has unspecified nullability but React requires that all NSNumber arguments are explicitly marked asnonnullto ensure compatibility with Android

await createdResizedImage(
      uri,
      width,
      height,
      format,
      quality,
      rotation,
      outputPath,
      keepMeta,
      { mode, onlyScaleDown }
    );

Screenshot -

image

Env -

XCode 13.2.1 React Native 0.66.4 "@bam.tech/react-native-image-resizer": "^3.0.0-beta.0"

nadishan commented 2 years ago

I have fixed above error in #320. Please review and merge it to master.