How To Display Wifi List Promise Values React Native

I’m using the react-native-wifi-reborn package to get a list of all nearby wifi points. How do I get the list out of the promise? I’ve looked at one solution and it uses a class, but where my app calls the function to get the list, it isn’t in one.

const MainScreen = ({navigation}) => {


    let wifiList = WifiManager.reScanAndLoadWifiList().then((data) => {return data});


    return (

        <Layout style={styles.container}>


export default MainScreen;

When wifiList is logged, the output is {"_U": 0, "_V": 0, "_W": null, "_X": null}

113 thoughts on “How To Display Wifi List Promise Values React Native”

  1. Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is fundamental and all. However
    think about if you added some great graphics or
    video clips to give your posts more, “pop”! Your content is excellent but with pics
    and videos, this blog could definitely be one of the greatest in its field.
    Excellent blog!