about summary refs log tree commit diff
path: root/src/tours/Debug.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/tours/Debug.tsx')
-rw-r--r--src/tours/Debug.tsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tours/Debug.tsx b/src/tours/Debug.tsx
new file mode 100644
index 000000000..ba643a802
--- /dev/null
+++ b/src/tours/Debug.tsx
@@ -0,0 +1,18 @@
+import React from 'react'
+import {useTourGuideController} from 'rn-tourguide'
+
+import {Button} from '#/components/Button'
+import {Text} from '#/components/Typography'
+
+export function TourDebugButton() {
+  const {start} = useTourGuideController('home')
+  return (
+    <Button
+      label="Start tour"
+      onPress={() => {
+        start()
+      }}>
+      {() => <Text>t</Text>}
+    </Button>
+  )
+}