react-native-device-uuid
react-native-device-uuid copied to clipboard
Possible Unhandled Promise Rejection (id: 0)
Possible Unhandled Promise Rejection (id: 0):
TypeError: Cannot read property 'getUUID' of undefined
TypeError: Cannot read property 'getUUID' of undefined
at blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:132798:20
at tryCallTwo (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:13422:7)
at doResolve (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:13586:15)
at new Promise (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:13445:5)
at Object.getUUID (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:132797:14)
at Login.<anonymous> (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:91202:26)
at commitCallbacks (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:6324:21)
at commitLifeCycles (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:8517:19)
at commitAllLifeCycles (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:9567:15)
at Object._invokeGuardedCallback (blob:http://localhost:8081/15b07455-e83e-4936-b6ec-2953b21fdf89:2789:16)
Getting this error while trying to get the uuid and print it on console using console.log. I tried to add the library using the method given in documentation but it didn't help.
??? any answer to this ?