11import dedent from "dedent" ;
22import React , { ReactElement , useCallback , useMemo , useRef } from "react" ;
3- import { Alert , Animated as VanillaAnimated , Button , Dimensions , SafeAreaView , Text } from "react-native" ;
4- import {
5- AttachStep ,
6- SpotlightTourProvider ,
7- StopParams ,
8- TourBox ,
9- TourStep ,
10- } from "react-native-spotlight-tour" ;
3+ import { Alert , Button , Dimensions , SafeAreaView , Text , Animated as VanillaAnimated } from "react-native" ;
4+ import { Text as TextPaper } from "react-native-paper" ;
5+ import Animated , { useSharedValue , withSpring } from "react-native-reanimated" ;
6+ import { AttachStep , SpotlightTourProvider , StopParams , TourBox , TourStep } from "react-native-spotlight-tour" ;
117
128import {
139 BoldText ,
@@ -18,8 +14,6 @@ import {
1814 TitleText ,
1915} from "./App.styles" ;
2016import { DocsTooltip } from "./DocsTooltip" ;
21- import { Text as TextPaper } from 'react-native-paper' ;
22- import Animated , { useSharedValue , withSpring } from "react-native-reanimated" ;
2317
2418export function App ( ) : ReactElement {
2519 const gap = useRef ( new VanillaAnimated . Value ( 0 ) ) . current ;
@@ -108,8 +102,8 @@ export function App(): ReactElement {
108102 } , {
109103 before ( ) {
110104 return new Promise < void > ( resolve => {
111- reanimatedGap . value = withSpring ( Dimensions . get ( "screen" ) . height * 0.24 )
112- return resolve ( )
105+ reanimatedGap . value = withSpring ( Dimensions . get ( "screen" ) . height * 0.24 ) ;
106+ return resolve ( ) ;
113107 } ) ;
114108 } ,
115109 render : ( { previous, stop } ) => (
@@ -191,15 +185,17 @@ export function App(): ReactElement {
191185 </ DescriptionText >
192186 </ SectionContainerView >
193187 </ VanillaAnimated . View >
194- < Animated . View style = { [ { transform : [ { translateY : reanimatedGap } ] } ] } >
188+ < Animated . View style = { [ { transform : [ { translateY : reanimatedGap } ] } ] } >
195189 < SectionContainerView >
196190 < AttachStep index = { 4 } >
197- < TextPaper variant = "titleMedium" > { "Use it with your favorite libraries!" } </ TextPaper >
191+ < TextPaper variant = "titleMedium" >
192+ { "Use it with your favorite libraries!" }
193+ </ TextPaper >
198194 </ AttachStep >
199195 < DescriptionText >
200196 { "It supports other animation and design libraries" }
201197 </ DescriptionText >
202- </ SectionContainerView >
198+ </ SectionContainerView >
203199 </ Animated . View >
204200 </ >
205201 ) }
0 commit comments