APP_ID
, APP_SECRET
, APP_ICON
, APP_BASE_URL
, and IMPLEMENTATION_TYPE
assigned to your application to the init
method as a parameter. Generally, initialization is implemented in the Application class in your project.TapTalkImplementationTypeUI
: used for implementation with only TapUI
TapTalkImplementationTypeCore
: used for implementation with only TapCore
TapTalkImplementationTypeCombine
: used for implementation with both of TapCore and TapUI combined<application>
tag.initializeGooglePlacesApiKey()
method.<application>
tag.openRoomList()
method in the TapUI class. Creating a user interface won't be necessary, because TapTalk.io have provided an integrated user interface to be used in your application. To use TapTalk.io's chat interface, simply initialize our TapUI method and you are good to go. For more information about TapUI and TapCore, please see TapUI and TapCore page.ReactContextBaseJavaModule
.navigateToPowerTalk()
to open PowerTalk chat view from the previously created activity. Annotating this method with @ReactMethod
will enable the method to be invoked from JavaScript of a React Native app.ReactContextBaseJavaModule
requires that a function calledgetName()
is always implemented.FLAG_ACTIVITY_NEW_TASK
is required to be added to the intent
's flags if we are to open a new activity from a non-activity context (In this case, React Application Context).ReactPackage
. We will name this file PowerTalkStarterPackage
.createNativeModules()
function and add the PowerTalkStarterModule
object to modules array. PowerTalkStarterPackage
in the getPackages()
method of the MainApplication.java file.navigateToPowerTalk()
method to open PowerTalk chat view. NativeModules
from React Native:navigateToPowerTalk()
to open PowerTalk chat view. Here we will be using a button's onPress()
method as an example.