https://github.com/krystofwoldrich/rn-null-native-modules-reproducer
https://github.com/krystofwoldrich/rn-null-native-modules-reproducer
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/krystofwoldrich/rn-null-native-modules-reproducer
- Owner: krystofwoldrich
- Created: 2025-02-25T22:44:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-25T22:48:12.000Z (3 months ago)
- Last Synced: 2025-02-25T23:31:51.720Z (3 months ago)
- Language: Kotlin
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Null Argument in NativeModules Reproducer
```bash
yarn ios --mode Release
```See that `RCT_EXPORT_SYNCHRONOUS_TYPED_METHOD(NSString *, call: (NSDictionary * _Nullable) name` argument name is `[NSNull null]`.
The difference between Debug and Release version of `RCT_JSON_CONVERTER` causes the nil to be converted to null.
https://github.com/facebook/react-native/blob/77889afa1c9d0bdb966102860a5d1d1d91187ae8/packages/react-native/React/Base/RCTConvert.mm#L39-L55