As an initial step, encapsulate your application within the CommtProvider. This step is crucial for integrating your application with the capabilities provided by the Commt plugin. The CommtProvider sets up a context and provides certain functionalities to be used within your App.This integration enables your application to seamlessly communicate with and benefit from the Commt plugin.
import CommtProvider from "@commt/rn-sdk";
const App = () => {
return(...);
}
export default CommtProvider(App);
or
import CommtProvider from "@commt/rn-sdk";
const App = () => {
return(
<CommtProvider>
{...}
</CommtProvider>
);
};
export default App;