General Feedback Component
The Feedback Form Component is an essential tool for collecting user opinions, suggestions, and comments. It allows you to gather valuable feedback to improve your product or service.
Last updated
npm install @questlabs/react-native-sdktype FeedBack ={
name:string,
email:string,
message:string,
rating:number,
}import { Feedback } from "@questlabs/react-native-sdk";
import { Button, SafeAreaView, StyleSheet } from "react-native";
import React, { useState } from "react";
import {
Feedback,
Notification
} from "@questlabs/react-native-sdk/src/components";
export default function App() {
return (
<SafeAreaView style={styles.container}>
<Notification.Provider notificationView={{ backgroundColor: "gray" }}>
<Feedback
ratingMainViewStyle={{
backgroundColor: "white",
}}
onSubmit={(data) => console.log(data)}
/>
</Notification.Provider>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "white",
marginTop: 40,
justifyContent: "center",
},
});