Skip to content

v9.8.2-beta.1

@isekovanic isekovanic tagged this 27 Aug 16:05
## 🎯 Goal

It would appear that in `react-native-reanimated` version `4.6.0` and
onwards, the swallowing of `LayoutAnimation.configureNext` in Reanimated
has been fixed. However, this now causes our keyboard animations to
struggle with the Reanimated animation due to the fact that they are
both trying to animate the layout.

I somehow missed this in the RN 0.87 upgrade, but it should be fixed
here.

To address it, we disable the `LayoutAnimation` in our
`KeyboardCompatibleView` because:

1. It never worked pre `4.6.0` of `reanimated`
2. Where it does work, it's interfering with the actual layout animation

So this change basically makes sure we have the old behaviour again.

## 🛠 Implementation details

<!-- Provide a description of the implementation -->

## 🎨 UI Changes

<!-- Add relevant screenshots -->

<details>
<summary>iOS</summary>


<table>
    <thead>
        <tr>
            <td>Before</td>
            <td>After</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <!--<img src="" /> -->
            </td>
            <td>
                <!--<img src="" /> -->
            </td>
        </tr>
    </tbody>
</table>
</details>


<details>
<summary>Android</summary>

<table>
    <thead>
        <tr>
            <td>Before</td>
            <td>After</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <!--<img src="" /> -->
            </td>
            <td>
                <!--<img src="" /> -->
            </td>
        </tr>
    </tbody>
</table>
</details>

## 🧪 Testing

<!-- Explain how this change can be tested (or why it can't be tested)
-->

## ☑️ Checklist

- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required)
- [ ] PR targets the `develop` branch
- [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible
scenarios
  - [ ] SampleApp iOS and Android
  - [ ] Expo iOS and Android
Assets 2
Loading