Read Me :

This is a demo app for implementing commandersAct's react-native bridges

Main code is inside ./App.tsx file

More importantly, you'll need to read the native documentation for full details.

Initialization is done once the app is loaded :

// App.tsx file :

export default function App() {
  initialize() // we call initialization for both TCServerSide and TCConsent bridges
  return (
    <View style={styles.appContainer}>
      <ButtonRow />
    </View>
  );
}

async function initialize()
{
    // Check with your consultant or in your platform for the siteID, privacyID for TCConsent,
    // and for your TCServerSide's sourceKey

  TCConsent.setSiteIDPrivacyID(3311, 2929)
  TCServerSide.initServerSide(3311, 'a_source_key')
}

App will display a list of button, each one of them will invoke a ServerSide/TCConsent method, you will need to keep an eye on android studio logcat / xcode console / react-native console for displayed logs.

Support & Contact :

Support : support@commandersact.com

http://www.commandersact.com

Commanders Act | 7b rue taylor - 75010 PARIS - France

Commanders Act logo