react-native-batch-push icon indicating copy to clipboard operation
react-native-batch-push copied to clipboard

[DOC] RNBatchPush.loginUser got 0 arguments, expected 1

Open henricazottes opened this issue 8 years ago • 1 comments

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 ?

henricazottes avatar Apr 19 '18 08:04 henricazottes

Thanks for the feedback, the doc is updated.

As the flow typing indicates, the loginUser function takes a string argument.

Minishlink avatar Apr 19 '18 15:04 Minishlink