react-native-batch-push
react-native-batch-push copied to clipboard
[DOC] RNBatchPush.loginUser got 0 arguments, expected 1
Hi,
Your README states:
// if you want to give a custom identifier to the user
BatchPush.loginUser('theUserId');
My understanding was that it's not mandatory to give a custom ID. However, if I call BatchPush.login() without one I get this error:
RNBatchPush.loginUser got 0 arguments, expected 1
Which goes away when I set one. Could you update the doc for that ?
Thanks for the feedback, the doc is updated.
As the flow typing indicates, the loginUser function takes a string argument.