MCPcopy Index your code
hub / github.com/Aashu-Dubey/react-native-animation-samples

github.com/Aashu-Dubey/react-native-animation-samples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
86 symbols 210 edges 48 files 2 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

React Native Animation Samples

Some very interesting and challenging animation samples built in react-native

🧬 Samples

Project
> Expo Snack

> YouTube Tutorial Playlist | | |

1. Custom Toolbar

> YouTube Tutorial

A Custom playful, interactive toolbar with cool gesture based interruptible animations.

> Browse

> Demo: twitter | youtube short 1, short 2 | Animated Toolbar Preview | |

2. Color Swatch

> YouTube Tutorial

A Color Swatch that plays a circular rotation based on user gestures.

> Browse

> Demo: twitter | youtube | Color Swatch Preview | |

3. Grid Magnification

A grid list view that displays Magnify effect on long press & drag, focusing on the items near the touch area within a radius.

> Browse

> Demo: twitter

> Alternatives: Flutter | Grid Magnification Preview | |

4. Rope Physics

A realistic looking gesture controlled, bezier based Rope UI implementation and related samples.

> Browse

> Demo: twitter | Rope Physics Preview | |

5. Custom Cursor/Caret

A Customizable custom cursor/caret for TextFields, with intuitive validation animations for max length and password strength.

> Browse

> Demo: twitter (max length | password strength)

> Alternatives: Flutter | Custom Cursor/Caret Preview |

🧬 Other samples (Incomplete) 🚧

  • Cards Swap:- A drag/swipe demo where the cards dodge each other with gesture based animations. See preview

🖥 Running locally

# after clone, cd into the directory
# install dependencies
yarn install

# iOS only
npx pod-install ios
# or
cd ios && pod install && cd ..

# Run iOS
npx react-native run-ios

# Run Android
npx react-native run-android

Extension points exported contracts — how you extend this code

Props (Interface)
(no doc)
src/components/BackButton.tsx
PaletteProp (Interface)
(no doc)
src/samples/color_swatch/ColorSwatch.tsx
ListItemProps (Interface)
(no doc)
src/screens/list/ListItem.tsx
ButtonType (Interface)
(no doc)
src/samples/custom_toolbar/Toolbar.tsx
Props (Interface)
(no doc)
src/screens/list/SamplesListView.tsx
ButtonType (Interface)
(no doc)
src/samples/custom_toolbar/ToolbarAnimated.tsx
GestureHandlerProps (Interface)
(no doc)
src/samples/rope_physics/RopeViewSvg.tsx
GestureHandlerProps (Interface)
(no doc)
src/samples/rope_physics/RopeViewSkia.tsx

Core symbols most depended-on inside this repo

renderErrText
called by 5
src/samples/custom_caret/PasswordStrength.tsx
slackDecline
called by 4
src/samples/rope_physics/helper.ts
calculateSpringPoint
called by 4
src/samples/rope_physics/helper.ts
createPath
called by 3
src/samples/rope_physics/RopeViewSkia.tsx
themeStyles
called by 3
src/samples/rope_physics/plug_socket/PlugSocketsView.tsx
createPath
called by 3
src/samples/rope_physics/plug_socket/RopeViewSkia.tsx
themeStyles
called by 3
src/screens/list/ListItem.tsx
themeStyles
called by 3
src/screens/list/SamplesListView.tsx

Shape

Function 61
Interface 17
Method 6
Class 2

Languages

TypeScript91%
Kotlin9%

Modules by API surface

src/samples/rope_physics/plug_socket/RopeViewSkia.tsx7 symbols
src/samples/rope_physics/RopeViewSkia.tsx7 symbols
src/screens/list/ListItem.tsx5 symbols
src/samples/rope_physics/plug_socket/RopeViewSvg.tsx5 symbols
src/samples/rope_physics/RopeViewSvg.tsx5 symbols
src/samples/custom_toolbar/ToolbarAnimated.tsx5 symbols
android/app/src/main/java/com/rn_animations/MainApplication.kt5 symbols
src/screens/list/SamplesListView.tsx4 symbols
src/samples/rope_physics/plug_socket/PlugSocketsView.tsx4 symbols
src/samples/custom_toolbar/Toolbar.tsx4 symbols
src/theme.ts3 symbols
src/samples/grid_magnification/types.ts3 symbols

For agents

$ claude mcp add react-native-animation-samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact