Skip to content

Commit

Permalink
Fix broken examples in Animated API docs (#4321)
Browse files Browse the repository at this point in the history
I missed a few examples in #4200 where the example expo sandboxes were broken due to useAnimatedValue not being exported on web.
  • Loading branch information
poteto authored Oct 30, 2024
1 parent 0db3af9 commit 4aa3ffe
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.71/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect, useAnimatedValue} from 'react';
import {Animated, Text, View} from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.72/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.73/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.74/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.75/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.76/animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For example, a container view that fades in when it is mounted may look like thi
<Tabs groupId="language" queryString defaultValue={constants.defaultSnackLanguage} values={constants.snackLanguages}>
<TabItem value="javascript">

```SnackPlayer ext=js
```SnackPlayer ext=js&supportedPlatforms=ios,android
import React, {useEffect} from 'react';
import {Animated, Text, View, useAnimatedValue} from 'react-native';
Expand Down

0 comments on commit 4aa3ffe

Please sign in to comment.