we-insights-react-test
v1.0.7
Published
[we-insights] is a powerful utility library designed to streamline data collection processes for WeApp employees. It simplifies the process of gathering, storing, and managing data within WeApp projects, making it an invaluable tool for enhancing efficien
Downloads
15
Maintainers
Readme
Please observe that this is for web clients use only. Are you looking for the native version? - visit: https://www.npmjs.com/package/we-insights-react-native
we-insights-react
[we-insights] is a powerful utility library designed to streamline data collection processes for WeApp employees. It simplifies the process of gathering, storing, and managing data within WeApp projects, making it an invaluable tool for enhancing efficiency and productivity.
Installation
npm install we-insights-react-native
yarn add we-insights-react-native
Usage
import { collectInsight } from 'we-insights-react-native';
await collectInsight('data to be collected');
import { FeedbackForm, Translations, IconItem, Style } from 'we-insights-react-native';
const customIcons: IconItem[] = [...]; // Define your custom icons
const customTranslations: Translations = {...}; // Define your custom translations
const customizedStyle: Style = {...}; // Define your custom styles
<FeedbackForm
projectName="Your Project Name"
onSend={handleSend}
onSkip={handleSkip}
email="[email protected]"
style={customizedStyle}
customTranslations={customTranslations}
customIcons={customIcons}
/>;
License
MIT