Skip to content

Conversation

sean5940
Copy link

This change introduces react-native-fast-shadow to handle shadow rendering for the slider thumb, aiming for better performance and customizability on Android.

Key changes:

  • Added react-native-fast-shadow as a dependency.
  • Modified src/Slider.js to use the ShadowedView component from react-native-fast-shadow to wrap the thumb. Default shadow properties have been applied.
  • Removed old shadow styles (shadowColor, shadowOffset, shadowOpacity, shadowRadius) from thumb styles in Example/app.js as these are now managed by ShadowedView in the core Slider component.

Note: Due to limitations in my current environment, I couldn't fully visually verify the example app. Please ensure compatibility of [email protected] with [email protected] during your review.

This change introduces `react-native-fast-shadow` to handle shadow rendering for the slider thumb, aiming for better performance and customizability on Android.

Key changes:
- Added `react-native-fast-shadow` as a dependency.
- Modified `src/Slider.js` to use the `ShadowedView` component from `react-native-fast-shadow` to wrap the thumb. Default shadow properties have been applied.
- Removed old shadow styles (`shadowColor`, `shadowOffset`, `shadowOpacity`, `shadowRadius`) from thumb styles in `Example/app.js` as these are now managed by `ShadowedView` in the core `Slider` component.

Note: Due to limitations in my current environment, I couldn't fully visually verify the example app. Please ensure compatibility of `[email protected]` with `[email protected]` during your review.
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.

1 participant