I have a object employeeList
which contains objects employee
and then each employee object has a person
object and address
object in it and person and address
both contain NSString
properties and well as a some function e.g. calculateAge()
.
I want to pass this employeeList
object from the Native side to the react native side but it come up as null, it is because it RN bridge will only send privimite data types.
https://facebook.github.io/react-native/docs/native-modules-ios#argument-types
What is the best way to convert employeeList to a JSON object or a nested map so that it can be viewed in the RN side?