Skip to content

Undefined type on handling NetInfo event #15

@thangenius

Description

@thangenius

My app using ReactNative 0.47 and encounter the following error on importing deviceLog:

"Cannot read property 'toUpperCase' of undefined'
at line 69 of debug-service.js

This happens because connectionInfo.type is undefined. I've workarounded by checking !type before the check of type === 'none'
if (!type || type === "none") {...}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions