Skip to content
Merged
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
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
[![TypeScript](https://img.shields.io/badge/types-included-blue.svg)](./src/types.ts)
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)

A lightweight, production-ready toolkit for smooth, scroll-driven UI with Reanimated 3.
A lightweight, production-ready toolkit for smooth, scroll-driven UI with
Reanimated 3.16+ and 4.

- **UI-thread animations** at 60 FPS
- **Automatic direction detection** with threshold
Expand Down Expand Up @@ -50,11 +51,14 @@ pnpm add react-native-motionify
# bun
bun add react-native-motionify

# peer deps
# peer dependency
npm install react-native-reanimated@">=3.16"
```

Follow Reanimated 3 setup: `https://docs.swmansion.com/react-native-reanimated/docs/3.x/fundamentals/getting-started`.
Follow the setup guide for your installed Reanimated major version:

- [Reanimated 4 setup](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/) for New Architecture apps. Reanimated 4 also requires `react-native-worklets`.
- [Reanimated 3 setup](https://docs.swmansion.com/react-native-reanimated/docs/3.x/fundamentals/getting-started/) for apps that still use the Legacy Architecture.

---

Expand Down Expand Up @@ -345,7 +349,7 @@ function HomeScreen() {
- `DEFAULTS`: threshold, durations, idle timeout, throttle
- `TRANSLATION_PRESETS`: common ranges (e.g., `BOTTOM_TAB`, `FAB_*`, `HEADER`)
- `INTERPOLATION_PRESETS`: fade/scale/parallax/rotate/sticky presets
- Helpers: `createInterpolation`, `createFadeInterpolation`, `createScaleInterpolation`, `createParallaxInterpolation`, `createRotationInterpolation`, `clamp`, `lerp`, `mapRange`
- Helpers: `createTranslationRange`, `createInterpolation`, `createFadeInterpolation`, `createScaleInterpolation`, `createParallaxInterpolation`, `createRotationInterpolation`, `clamp`, `lerp`, `mapRange`

---

Expand Down Expand Up @@ -513,13 +517,16 @@ git clone https://github.com/dennytosp/react-native-motionify.git
cd react-native-motionify
bun install

bun run typecheck # tsc --noEmit over src/ and test/
bun test # unit tests for the pure helpers
bun run build # tsc -> lib/
bun run format:check
bun run lint
bun run typecheck
bun test
bun run build
npm pack --dry-run
```

These three commands are exactly what CI runs on every pull request. See
[CONTRIBUTING.md](./CONTRIBUTING.md) for the full guide, and
CI also validates the Expo example dependency versions and runs Expo Doctor.
See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full guide, and
[CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) for community expectations.

- Found a bug? [Open an issue](https://github.com/dennytosp/react-native-motionify/issues/new?template=bug_report.yml)
Expand Down
2 changes: 0 additions & 2 deletions example/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export default (config: ExpoConfig): ExpoConfig => ({
icon: appIcon.default.icon,
scheme: appScheme,
userInterfaceStyle: "automatic",
newArchEnabled: true,
runtimeVersion: appVersion,
ios: {
icon: {
Expand Down Expand Up @@ -64,7 +63,6 @@ export default (config: ExpoConfig): ExpoConfig => ({
backgroundImage: "./assets/images/android-icon-background.png",
monochromeImage: "./assets/images/android-icon-monochrome.png",
},
edgeToEdgeEnabled: true,
predictiveBackGestureEnabled: false,
package: appId,
versionCode: buildNumber,
Expand Down
6 changes: 3 additions & 3 deletions example/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@reduxjs/toolkit": "^2.9.2",
"@shopify/react-native-skia": "2.6.2",
"axios": "^1.12.2",
"eas-local-cache": "^1.0.3",
"eas-local-cache": "^1.0.4",
"expo": "~57.0.11",
"expo-blur": "~57.0.2",
"expo-build-properties": "~57.0.9",
Expand Down Expand Up @@ -66,7 +66,7 @@
"react-native-indicators": "^0.17.0",
"react-native-localize": "^3.5.4",
"react-native-modal": "^14.0.0-rc.1",
"react-native-motionify": "^1.0.1",
"react-native-motionify": "^1.1.0",
"react-native-popup-menu": "^0.19.0",
"react-native-reanimated": "4.5.1",
"react-native-safe-area-context": "~5.7.0",
Expand Down