Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes of dark-theme and values in docs #6058

Merged
merged 10 commits into from
Jun 11, 2024
Next Next commit
Fixes of values in Interactive examples
  • Loading branch information
patrycjakalinska committed Jun 11, 2024
commit c24b20999e805663f0ff4580c30ddccef822912f
5 changes: 4 additions & 1 deletion packages/docs-reanimated/src/examples/DecayBasic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export default function App() {
offset.value = withDecay({
velocity: event.velocityX,
rubberBandEffect: true,
clamp: [-(width.value / 2) + SIZE / 2, width.value / 2 - SIZE / 2],
clamp: [
-(width.value / 2) + SIZE / 2 + 50,
width.value / 2 - SIZE / 2 - 50,
],
});
// highlight-end
});
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-reanimated/src/examples/SpringBasic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface AppProps {
}

export default function App({ width }: AppProps) {
const offset = useSharedValue<number>(width / 2 - 240);
const offset = useSharedValue<number>(width / 2 - 120);

const animatedStyles = useAnimatedStyle(() => ({
transform: [{ translateX: offset.value }],
Expand Down