Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Fix crash on iOS when passing null values to setUserData #626

Closed
wants to merge 1 commit into from

Conversation

janicduplessis
Copy link
Contributor

If any value passed to setUserData is null it causes a crash on iOS. This is because the fbsdk expects nil and not NSNull. To fix it we pass all values through RCTNilIfNull.

Test Plan:

Test that setUserData({email: null}) doesn't crash anymore.

@janicduplessis
Copy link
Contributor Author

Closing in favor of #628

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants