new _reactNative.NativeModules.NetworkManager() is not a constructor, and NativeModules.NetworkManager is not an object. Am I missing something? I am able to import your plugin/module properly and initialize the NetworkManager class, then call the BluetoothCP.advertise("WIFI") function which calls NativeManager.advertise(kind) but NativeManager.advertise is undefined, because NativeModules.NetworkManager is undefined.
Any ideas?
By the way, I am using React Native with Expo. I imported and called the module from App.js and/or one of my screens. Calling the functions/methods you implemented is not a problem.
import BluetoothCP from 'react-native-bluetooth-cross-platform';
...
render() {
BluetoothCP.advertise("WIFI");
...
}
new _reactNative.NativeModules.NetworkManager() is not a constructor, and NativeModules.NetworkManager is not an object. Am I missing something? I am able to import your plugin/module properly and initialize the NetworkManager class, then call the BluetoothCP.advertise("WIFI") function which calls NativeManager.advertise(kind) but NativeManager.advertise is undefined, because NativeModules.NetworkManager is undefined.
Any ideas?
By the way, I am using React Native with Expo. I imported and called the module from App.js and/or one of my screens. Calling the functions/methods you implemented is not a problem.
import BluetoothCP from 'react-native-bluetooth-cross-platform'; ... render() { BluetoothCP.advertise("WIFI"); ... }