Skip to content

Commit

Permalink
fix: apply monkey patch synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Dec 23, 2024
1 parent a395182 commit 1fc8e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/animated.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint react/jsx-sort-props: off */
import React, { useEffect, useMemo, useRef, useState } from "react";
import React, { useLayoutEffect, useMemo, useRef, useState } from "react";
import { Animated, Platform, StyleSheet } from "react-native";
import {
controlEdgeToEdgeValues,
Expand Down Expand Up @@ -192,8 +192,8 @@ export const KeyboardProvider = ({
[],
);

// effects
useEffect(() => {
// layout effects
useLayoutEffect(() => {
if (enabled) {
applyMonkeyPatch();
} else {
Expand Down

0 comments on commit 1fc8e8a

Please sign in to comment.