react-native-pdf
react-native-pdf copied to clipboard
[iOS] Incorrect TableContent pageIdx datatype
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 :
- 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

on iOS: pageIdx return string

Show us the code you are using?