Check out example codes for "ios get notification payload". It will help you in understanding the concepts better.
Code Example 1
let userInfo = notification.request.content.userInfo
print userInfo["userId"]
Learn ReactJs, React Native from akashmittal.com