Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.71/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.72/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.73/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.74/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.75/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.76/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.77/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.78/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.79/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-0.80/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export default () => {
<TabItem value="typescript">

```SnackPlayer ext=tsx
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
import React, {useRef, useEffect} from 'react';
import {Animated, Text, View} from 'react-native';
import type {PropsWithChildren} from 'react';
import type {ViewStyle} from 'react-native';

type FadeInViewProps = PropsWithChildren<{style: ViewStyle}>;

const FadeInView: React.FC<FadeInViewProps> = props => {
const fadeAnim = useAnimatedValue(0); // Initial value for opacity: 0
const fadeAnim = useRef(new Animated.Value(0)).current // Initial value for opacity: 0

useEffect(() => {
Animated.timing(fadeAnim, {
Expand Down