From 06b51acf947c5f52998073253ab18fd1600e61b0 Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Thu, 21 Dec 2023 19:22:57 +0100 Subject: [PATCH 1/4] feat: bump to simple version with rn 73 --- FabricExample/App.tsx | 49 +- FabricExample/Gemfile.lock | 99 + .../__tests__/{App-test.tsx => App.test.tsx} | 3 + FabricExample/android/app/build.gradle | 61 +- .../android/app/src/debug/AndroidManifest.xml | 6 +- .../com/fabricexample/ReactNativeFlipper.java | 75 - .../android/app/src/main/AndroidManifest.xml | 2 +- .../java/com/fabricexample/MainActivity.java | 42 - .../java/com/fabricexample/MainActivity.kt | 22 + .../com/fabricexample/MainApplication.java | 62 - .../java/com/fabricexample/MainApplication.kt | 45 + .../com/fabricexample/ReactNativeFlipper.java | 20 - FabricExample/android/build.gradle | 17 +- FabricExample/android/gradle.properties | 3 - .../android/gradle/wrapper/gradle-wrapper.jar | Bin 61574 -> 63721 bytes .../gradle/wrapper/gradle-wrapper.properties | 3 +- FabricExample/android/gradlew | 19 +- FabricExample/babel.config.js | 2 +- .../FabricExample.xcodeproj/project.pbxproj | 102 +- .../ios/FabricExample/AppDelegate.mm | 5 + .../AppIcon.appiconset/Contents.json | 45 +- .../Images.xcassets/Contents.json | 4 +- FabricExample/ios/FabricExample/Info.plist | 40 +- .../ios/FabricExample/{main.mm => main.m} | 0 .../FabricExampleTests/FabricExampleTests.m | 4 +- FabricExample/ios/Podfile | 23 - FabricExample/ios/Podfile.lock | 1559 +++--- FabricExample/package.json | 42 +- .../metro-inspector-proxy+0.76.8.patch | 177 - .../patches/react-native-box2d+0.2.5.patch | 85 - FabricExample/yarn.lock | 4984 ++++++++--------- 31 files changed, 3543 insertions(+), 4057 deletions(-) create mode 100644 FabricExample/Gemfile.lock rename FabricExample/__tests__/{App-test.tsx => App.test.tsx} (73%) delete mode 100644 FabricExample/android/app/src/debug/java/com/fabricexample/ReactNativeFlipper.java delete mode 100644 FabricExample/android/app/src/main/java/com/fabricexample/MainActivity.java create mode 100644 FabricExample/android/app/src/main/java/com/fabricexample/MainActivity.kt delete mode 100644 FabricExample/android/app/src/main/java/com/fabricexample/MainApplication.java create mode 100644 FabricExample/android/app/src/main/java/com/fabricexample/MainApplication.kt delete mode 100644 FabricExample/android/app/src/release/java/com/fabricexample/ReactNativeFlipper.java rename FabricExample/ios/FabricExample/{main.mm => main.m} (100%) delete mode 100644 FabricExample/patches/metro-inspector-proxy+0.76.8.patch delete mode 100644 FabricExample/patches/react-native-box2d+0.2.5.patch diff --git a/FabricExample/App.tsx b/FabricExample/App.tsx index 6d539778589..1606027b965 100644 --- a/FabricExample/App.tsx +++ b/FabricExample/App.tsx @@ -1,3 +1,48 @@ -import App from '../app'; +import Animated, { + useSharedValue, + withTiming, + useAnimatedStyle, + Easing, +} from 'react-native-reanimated'; +import {View, Button, StyleSheet} from 'react-native'; +import React from 'react'; -export default App; +export default function AnimatedStyleUpdateExample() { + const randomWidth = useSharedValue(10); + + const config = { + duration: 500, + easing: Easing.bezierFn(0.5, 0.01, 0, 1), + }; + + const style = useAnimatedStyle(() => { + return { + width: withTiming(randomWidth.value, config), + }; + }); + + return ( + + +