Getting Started
This section will help you install the library and set it up for usage.
Installation
npm install react-native-wifi-and-hotspot-wizard
Auto Linking
The library supports Auto Linking using the following command
react-native link react-native-wifi-and-hotspot-wizard
Manual Linking (If Auto Linking not working)
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNWifiAndHotspotWizardPackage;
to the imports at the top of the file - Add
new RNWifiAndHotspotWizardPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-wifi-and-hotspot-wizard' project(':react-native-wifi-and-hotspot-wizard').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-wifi-and-hotspot-wizard/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-wifi-and-hotspot-wizard')