API Reference (Sample Code)
3 min
a initialize appstorys initialize('your app id', 'your account id', 'your user id'); this initializes the appstorys sdk to call stories, paste this code \<appstorys stories/> to call widgets, paste this code the position prop is optional, if you want to call multiple widgets then you can use position prop to identify each widget \<appstorys widgets position='widget one'/> to call overlay elements including banners floaters pip videos tooltips coachmarks spotlight csat surveys bottom sheets wrap your screen code with the appstorys wrapper \<appstorys screen name="screen name" options={{ // add custom padding for appstorys elements here }}> // your screen code \</appstorys screen> name a case sensitive name representing the screen this name should match the names provided to appstorys during integration options this is optional if you want to add padding to the appstorys elements to match your app's layout or to pass list of widget names inside options, you can pass positionlist a case sensitive list of strings representing the positions of the widgets, so that multiple widgets can be identified and displayed overlaypadding it takes padding values for pip videos, floater, banner and csat make sure to include this wrapper on top of your app's code this concludes the appstorys react native sdk integration guide after completing these steps, your app will be set up to track user activity, display components, and support stories managed from the appstorys dashboard for further information, contact the appstorys team we would be happy to assist you during the integration process