Open hassankhan opened 8 years ago
Adding nil
to the dictionary won't work if these values are missing, you may want to just use an empty string for your bridge.
edit: you can use the ?:
operator in Objective C to default to something, like:
NSString *defaultedToEmpty = maybeNilString ?: @"";
Haha thanks for checking my shitty implementation, this was one instance where, being an ObjC noob, I had no idea what to do. I tried using a ternary earlier, clearly must've been doing something wrong because I couldn't compile the code. Thanks for the pointers!!
No worries - I work at Heyzap and we were excited to review what you've done! Glad to help. I don't have much time at the moment but I might contribute with some PRs in the future instead of just commenting, but I am a react noob 😛
A second set of eyes would be great to check over the Android and iOS implementations.