0.1.1 • Published 2 years ago
@aatlas/engagement v0.1.1
@aatlas/engagement
Enhance feature awareness and drive success with our advanced nudging platform. Aatlas is a powerful tool designed to boost engagement for your newly launched feature.
Installation
npm install @aatlas/engagementor
yarn add @aatlas/engagementRequired dependencies
Bare React Native
Expo
Usage
import InAppGuide, { ConfigProvider } from '@aatlas/engagement';
// ...
const App = () => {
/**
* Control when you want to show the inAppGuide
*/
const [visible, setVisible] = useState<boolean>(false);
return (
/**
* Copy the 'appEnvId' and 'appSecret' from your Aatlas dashboard
*/
<ConfigProvider appEnvId={<number>} appSecret="<string>">
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}
>
<Button title="Open In app guide" onPress={() => setVisible(true)} />
/**
* Use the InAppGuide component and pass in the required props
*/
<InAppGuide visible={visible} setVisible={setVisible} />
</View>
</ConfigProvider>
);
}Try expo example app
cd example
yarn// Update /app/index.tsx and set the appEnvId and appSecret from your Aatlas dashboard
<ConfigProvider appEnvId={0} appSecret="xxxx">yarn startContributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library