motion-on-native 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -135,7 +135,7 @@ function createMotionComponent(Component) {
135
135
  const sharedValue = getSharedValue(key);
136
136
  if (sharedValue) {
137
137
  let config;
138
- if (transitionConfig.repeat && transitionConfig.repeat > 0) {
138
+ if (transitionConfig.repeat && (transitionConfig.repeat > 0 || transitionConfig.repeat === 'infinity')) {
139
139
  // Use withRepeat for repeated animations
140
140
  const baseAnimation = transitionConfig.type === 'spring'
141
141
  ? (0, react_native_reanimated_1.withSpring)(value, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motion-on-native",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Framer Motion-inspired animation library for React Native with Reanimated. Easy spring animations, gestures, and transitions for mobile apps.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",