Copy import { SafeAreaView, StyleSheet } from "react-native";
import React from "react";
import { Tutorial } from "@questlabs/react-native-sdk";
export default function App() {
return (
<SafeAreaView style={styles.container}>
<Tutorial
heading="Connection Preferences"
description="Defining Your Desired Communication and Call to Action"
mainStyle={{ backgroundColor: "red" }}
data={[
{
title: "Welcome ",
completed: true,
labels: [
{ text: "Publish your first post", completed: false },
{
text: "Stream your first live audio",
completed: false,
onPress: () => console.log("click"),
},
{ text: "Host your first conversation", completed: false },
],
},
{
title: "Lets start at the top",
inProgress: true,
labels: [
{ text: "Explore the Artist Dashboard", completed: false },
{
text: "Assign a title to your broadcast",
completed: false,
onPress: () => console.log("click"),
},
{
text: "Add tags to a Conversation or Broadcast",
completed: false,
},
],
},
{
title: "Build your community ",
locked: true,
labels: [
{ text: "Follow 5 artists", completed: false },
{
text: "Gain 5 followers",
completed: false,
onPress: () => console.log("click"),
},
{ text: "Host your first conversation", completed: false },
{
text: "Host your first broadcast",
completed: false,
onPress: () => console.log("click"),
},
],
},
{
title: "Keep it going ",
completed: false,
labels: [
{ text: "Reach 50 Subscribers", completed: false },
{
text: "Stream for a total of 8 hours",
completed: true,
onPress: () => console.log("click"),
},
{ text: "Post 20 pieces of content", completed: false },
{
text: "Post or Stream on 7 different days",
completed: true,
onPress: () => console.log("click"),
},
],
},
{
title: "Get even closer ",
completed: false,
labels: [
{ text: "Recieve 50 comments on posts", completed: false },
{
text: "Reach 50 Subscribers",
completed: true,
onPress: () => console.log("click"),
},
{
text: "Get 5 users speaking in a Conversation",
completed: false,
},
{
text: "Recieve 100 messages in a Broadcast",
completed: true,
onPress: () => console.log("click"),
},
],
},
]}
/>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "lightgray",
justifyContent: "center",
},
});