I am trying to connect postek EM 210 Bluetooth printer using my react native mobile app. I have SDK/ .jar file but need help for implementing its methods in react native
Postek has provided android SDK for use in android studio. Since my project is in react-native, I have included the .jar file in my project but have no clue how to use this file in react-native and access methods and functions that are available inside .jar file.
package com.postek.coyote.cdfptkbluetooth;
..
..
import com.postek.cdf.CDFPTKAndroid;
import com.postek.cdf.CDFPTKAndroidImpl;
public class BluetoothActivity extends AppCompatActivity implements AdapterView.OnItemClickListener, AdapterView.OnItemLongClickListener {
...
public static CDFPTKAndroid cdf = null;
...
}
So how do I convert these lines to react-native -
import com.postek.cdf.CDFPTKAndroid;
import com.postek.cdf.CDFPTKAndroidImpl;
..
public static CDFPTKAndroid cdf = null;
Alternatively, I want develop same app (using same SDK) with Bluetooth as here but in react-native.
Side note - We will even make react-native version of this app available on git for other developer who may be looking for this.