Skip to content

Commit

Permalink
Merge branch 'main' into @matipl01/fix-side-effects-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiPl01 authored Oct 25, 2024
2 parents 1b0f159 + 373fda0 commit 18c3e58
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/fabric-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ SPEC CHECKSUMS:
RNScreens: de6e57426ba0e6cbc3fb5b4f496e7f08cb2773c2
RNSVG: 08750404f92a36162a92522cc77dee437be1d257
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 8833bd4378ffd79f1dea711d6dc7231c09e63590
Yoga: 2a74e67570a7902969ff44f35dd41f47a9693be8

PODFILE CHECKSUM: 3eb88d49c8fe32af0ac2c85501e29d29171f1070

Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import Head from 'next/head';

export default function App({ Component, pageProps }) {
Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import { StyleSheet, Text, View } from 'react-native';

const styles = StyleSheet.create({
Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/noreanimated.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import { StyleSheet, View, Text } from 'react-native';

export default function App() {
Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/reanimated.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import { StyleSheet } from 'react-native';
import Animated from 'react-native-reanimated';

Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/ssg.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import Animated, {
PinwheelIn,
useAnimatedStyle,
Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/ssr.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import Animated, {
PinwheelIn,
useAnimatedStyle,
Expand Down
1 change: 1 addition & 0 deletions apps/next-example/pages/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable jsdoc/require-jsdoc */
import Animated, {
PinwheelIn,
useAnimatedStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,13 +784,13 @@ void LayoutAnimationsProxy::maybeRestoreOpacity(
void LayoutAnimationsProxy::maybeUpdateWindowDimensions(
facebook::react::ShadowViewMutation &mutation,
SurfaceId surfaceId) const {
// This is a hacky way to obtain the window dimensions.
// We can identify the root, by checking if its tag is equal to the surfaceId
if (mutation.parentShadowView.tag == surfaceId) {
if (mutation.type == ShadowViewMutation::Update &&
!std::strcmp(
mutation.oldChildShadowView.componentName, RootComponentName)) {
surfaceManager.updateWindow(
surfaceId,
mutation.parentShadowView.layoutMetrics.frame.size.width,
mutation.parentShadowView.layoutMetrics.frame.size.height);
mutation.newChildShadowView.layoutMetrics.frame.size.width,
mutation.newChildShadowView.layoutMetrics.frame.size.height);
}
}

Expand Down

0 comments on commit 18c3e58

Please sign in to comment.