Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I retrieve a specific Wi-Fi SSID when clicked? #109

Open
benjaminle9x opened this issue Dec 8, 2020 · 1 comment
Open

How do I retrieve a specific Wi-Fi SSID when clicked? #109

benjaminle9x opened this issue Dec 8, 2020 · 1 comment

Comments

@benjaminle9x
Copy link

I am setting up a click event on each object of the wifiList array so that when I click on a specific Wi-Fi, it sends an alert message of its SSID. How do I do this?

@denizyesilirmak
Copy link

denizyesilirmak commented Apr 14, 2021

loadWifiList function returns an array that contains ssid's and other informations. If you are populating your wifi list using map, you can assign an alert function on your list items.

          {
            this.state.wifiList.map((e, i) => {
              return (
                  <TouchableOpacity key={i} onPress={() => alert(e.SSID)}>

                  </TouchableOpacity>
              )
            })
          }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants