Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Possible promise rejection #2

Description

@udit-monarch

Hi i am using Expo to build my app and when i tried doing exactly as the example suggested it console logged empty and in UI no screen and an error "possible promise rejection".

When i tried the other way it gave me LOG {"_h": 0, "_i": 0, "_j": null, "_k": null}

find the code below:

import { initPhoneNumberHint } from 'react-native-phone-hint'; const [result, setResult] = React.useState(""); React.useEffect(() => { initPhoneNumberHint().then((no) => { setResult(no); }); }, []); console.log(result);

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