Skip to content

fix: Quick fix for broken inline styles #6962

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

Merged
merged 1 commit into from
Jan 31, 2025
Merged

Conversation

MatiPl01
Copy link
Member

Summary

This PR adds missing check for shared values in the style filtering function.

Test plan

Source code
import { useState } from 'react';
import Animated, { useSharedValue } from 'react-native-reanimated';

export default function PlaygroundScreen(): Element {
  const [state, setState] = useState({});
  const backgroundColor = useSharedValue('blue');

  return (
    <Animated.View
      style={[
        {
          backgroundColor,
          height: 200,
          width: 200,
        },
      ]}
    />
  );
}

@MatiPl01 MatiPl01 self-assigned this Jan 30, 2025
@MatiPl01 MatiPl01 marked this pull request as ready for review January 30, 2025 16:53
@MatiPl01 MatiPl01 requested a review from tjzel January 30, 2025 16:55
@MatiPl01 MatiPl01 added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit 55e0286 Jan 31, 2025
10 checks passed
@MatiPl01 MatiPl01 deleted the @matipl01/fix-inline-styles branch January 31, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants