You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[iOS] Fix activeOpacity in BorderlessButton (#3433)
## Description
Currently `activeOpacity` property in `BorderlessButton` doesn't work. It seems like it was broken by #2903. In this PR, `AnimatedBaseButton` is created from `InnerBaseButton` instead of `BaseButton` (which is a wrapper), so that props are correctly passed into animated view.
Fixes#3426
## Test plan
<details>
<summary>Tested on the following example:</summary>
```jsx
import React, { useEffect, useRef } from 'react';
import { StyleSheet } from 'react-native';
import {
BorderlessButton,
GestureHandlerRootView,
} from 'react-native-gesture-handler';
export default function EmptyExample() {
const buttonRef = useRef(null);
useEffect(() => {
console.log(buttonRef);
}, [buttonRef]);
return (
<GestureHandlerRootView style={styles.container}>
<BorderlessButton
activeOpacity={0.7}
ref={buttonRef}
style={{ width: 100, height: 25, backgroundColor: 'crimson' }}
/>
</GestureHandlerRootView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
});
```
</details>
0 commit comments