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

[iOS] Incorrect TableContent pageIdx datatype

Open imdangle opened this issue 4 years ago • 0 comments

What react-native version are you using?

  • 0.66.4

What react-native-pdf version are you using?

  • 6.4.0

What platform does your issue occur on? (android/ios/both)

  • iOS

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
  • Incorrect pageIdx datatype export type TableContent = { children: TableContent[], mNativePtr: number, pageIdx: number, title: string, };
  • At I look at iOS code, it will return a NSString for pageIdx, but at the pageIdx is a number.
  • For someone who use react native typescript like me. That lead to bugs when do some condition checking. 2) Interesting logs

Join a screenshot or video of the problem on the simulator or device? on Android: pageIdx is correct datatype Screen Shot 2022-01-22 at 11 36 58

on iOS: pageIdx return string Screen Shot 2022-01-22 at 11 44 17

Show us the code you are using?

imdangle avatar Jan 22 '22 04:01 imdangle