forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbe4025
commit 7c4e52d
Showing
295 changed files
with
3,990 additions
and
1,007 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,448 changes: 1,448 additions & 0 deletions
1,448
patches/@react-navigation+core+6.4.11+002+platform-navigation-stack-types.patch
Large diffs are not rendered by default.
Oops, something went wrong.
157 changes: 157 additions & 0 deletions
157
patches/@react-navigation+native-stack+6.9.26+001+keyboardHandlingEnabled-prop.patch
Large diffs are not rendered by default.
Oops, something went wrong.
196 changes: 196 additions & 0 deletions
196
...hes/@react-navigation+native-stack+6.9.26+002+added-interaction-manager-integration.patch
Large diffs are not rendered by default.
Oops, something went wrong.
413 changes: 413 additions & 0 deletions
413
patches/react-native-screens+3.34.0+002+ios_from_left_animation.patch
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1335,7 +1335,7 @@ index 0000000..46c2c2c | |
+#endif /* RCT_NEW_ARCH_ENABLED */ | ||
diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.mm b/node_modules/react-native-vision-camera/ios/RNCameraView.mm | ||
new file mode 100644 | ||
index 0000000..019be20 | ||
index 0000000..b90427e | ||
--- /dev/null | ||
+++ b/node_modules/react-native-vision-camera/ios/RNCameraView.mm | ||
@@ -0,0 +1,377 @@ | ||
|
@@ -1384,7 +1384,7 @@ index 0000000..019be20 | |
+ | ||
+ //The remaining part of the initializer is standard Objective-C code to create views and layout them with AutoLayout. Here we can change whatever we want to. | ||
+ _view = [[CameraView alloc] init]; | ||
+ _view.delegate = self; | ||
+ _view.delegate = self; | ||
+ | ||
+ self.contentView = _view; | ||
+} | ||
|
@@ -1397,9 +1397,9 @@ index 0000000..019be20 | |
+{ | ||
+ const auto &newViewProps = *std::static_pointer_cast<CameraViewProps const>(props); | ||
+ const auto &oldViewProps = *std::static_pointer_cast<CameraViewProps const>(_props); | ||
+ | ||
+ | ||
+ NSMutableArray* changedProps = [[NSMutableArray alloc] init]; | ||
+ | ||
+ | ||
+ if(oldViewProps.isActive != newViewProps.isActive){ | ||
+ _view.isActive = newViewProps.isActive; | ||
+ [changedProps addObject:@"isActive"]; | ||
|
@@ -1496,12 +1496,12 @@ index 0000000..019be20 | |
+ _view.enableFpsGraph = newViewProps.enableFpsGraph; | ||
+ [changedProps addObject:@"enableFpsGraph"]; | ||
+ } | ||
+ | ||
+ | ||
+ | ||
+ | ||
+ if(_view.format == nil){ | ||
+ _view.format =[ [NSMutableDictionary alloc] init]; | ||
+ } | ||
+ | ||
+ | ||
+ | ||
+ //Checking format props, TODO: find cleaner way to do it | ||
+ if(oldViewProps.format.supportsDepthCapture != newViewProps.format.supportsDepthCapture){ | ||
|
@@ -1521,7 +1521,7 @@ index 0000000..019be20 | |
+ [_view.format setValue:newPixelFormats forKey:@"pixelFormats"]; | ||
+ [changedProps addObject:@"format"]; | ||
+ } | ||
+ | ||
+ | ||
+ if(oldViewProps.format.videoStabilizationModes.size() != newViewProps.format.videoStabilizationModes.size()){ | ||
+ NSMutableArray* newVideoStabilizationModes = [[NSMutableArray alloc] init]; | ||
+ for(int i = 0; i < newViewProps.format.videoStabilizationModes.size(); i++){ | ||
|
@@ -1530,7 +1530,7 @@ index 0000000..019be20 | |
+ [_view.format setValue:newVideoStabilizationModes forKey:@"videoStabilizationModes"]; | ||
+ [changedProps addObject:@"format"]; | ||
+ } | ||
+ | ||
+ | ||
+ if(oldViewProps.format.photoHeight != newViewProps.format.photoHeight){ | ||
+ [_view.format setValue:[NSNumber numberWithDouble:newViewProps.format.photoHeight] forKey:@"photoHeight"]; | ||
+ [changedProps addObject:@"format"]; | ||
|
@@ -1578,11 +1578,11 @@ index 0000000..019be20 | |
+ [_view.format setValue:supportsPhotoHDR forKey:@"supportsPhotoHDR"]; | ||
+ [changedProps addObject:@"format"]; | ||
+ } | ||
+ | ||
+ | ||
+ if (_view.format.count == 0) { | ||
+ _view.format = nil; | ||
+ } | ||
+ | ||
+ | ||
+ if(_view.codeScannerOptions == nil){ | ||
+ _view.codeScannerOptions =[[NSMutableDictionary alloc] init]; | ||
+ } | ||
|
@@ -1595,12 +1595,12 @@ index 0000000..019be20 | |
+ [_view.codeScannerOptions setValue:newCodeTypes forKey:@"codeTypes"]; | ||
+ [changedProps addObject:@"codeScannerOptions"]; | ||
+ } | ||
+ | ||
+ | ||
+ if(oldViewProps.codeScannerOptions.interval != newViewProps.codeScannerOptions.interval){ | ||
+ [_view.codeScannerOptions setValue:[NSNumber numberWithDouble:newViewProps.codeScannerOptions.interval] forKey:@"interval"]; | ||
+ [changedProps addObject:@"codeScannerOptions"]; | ||
+ } | ||
+ | ||
+ | ||
+ if( | ||
+ oldViewProps.codeScannerOptions.regionOfInterest.x != newViewProps.codeScannerOptions.regionOfInterest.x || | ||
+ oldViewProps.codeScannerOptions.regionOfInterest.y != newViewProps.codeScannerOptions.regionOfInterest.y || | ||
|
@@ -1616,7 +1616,7 @@ index 0000000..019be20 | |
+ [_view.codeScannerOptions setValue:newRegionOfInterest forKey:@"regionOfInterest"]; | ||
+ [changedProps addObject:@"codeScannerOptions"]; | ||
+ } | ||
+ | ||
+ | ||
+ if (_view.codeScannerOptions.count == 0) { | ||
+ _view.codeScannerOptions = nil; | ||
+ } | ||
|
@@ -2005,25 +2005,6 @@ index 0000000..e47e42f | |
@@ -0,0 +1 @@ | ||
+{"version":3,"file":"CameraViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/specs/CameraViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAA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AK,CAAA;SAAE,CAAC,CAAC;QAClD,OAAO,CAAC,EAAE,QAAQ,CAAC;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC9C,CAAC,CACH,CAAC;IACF,SAAS,CAAC,EAAE,kBAAkB,CAC5B,QAAQ,CAAC;QACP,IAAI,EAAE,MAAM,CAAC;KACd,CAAC,CACH,CAAC;IACF,SAAS,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,aAAa,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,kBAAkB,CAC1B,QAAQ,CAAC;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,QAAQ,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACrF,CAAC,CACH,CAAC;IACF,WAAW,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;CAC/C;;AAED,wBAAiE"} | ||
\ No newline at end of file | ||
diff --git a/node_modules/react-native-vision-camera/package.json b/node_modules/react-native-vision-camera/package.json | ||
index 86352fa..7af9577 100644 | ||
--- a/node_modules/react-native-vision-camera/package.json | ||
+++ b/node_modules/react-native-vision-camera/package.json | ||
@@ -166,5 +166,13 @@ | ||
] | ||
] | ||
}, | ||
- "packageManager": "[email protected]+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" | ||
+ "codegenConfig": { | ||
+ "name": "RNVisioncameraSpec", | ||
+ "type": "all", | ||
+ "jsSrcsDir": "./src/specs", | ||
+ "android": { | ||
+ "javaPackageName": "com.mrousavy.camera" | ||
+ } | ||
+ }, | ||
+ "packageManager": "[email protected]" | ||
} | ||
diff --git a/node_modules/react-native-vision-camera/src/Camera.tsx b/node_modules/react-native-vision-camera/src/Camera.tsx | ||
index 18733ba..1668322 100644 | ||
--- a/node_modules/react-native-vision-camera/src/Camera.tsx | ||
|
59 changes: 59 additions & 0 deletions
59
...-native-vision-camera+4.0.0-beta.13+002+native-stack-unmount-recycle-camera-session.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
diff --git a/node_modules/react-native-vision-camera/ios/RNCameraView.mm b/node_modules/react-native-vision-camera/ios/RNCameraView.mm | ||
index b90427e..feccc33 100644 | ||
--- a/node_modules/react-native-vision-camera/ios/RNCameraView.mm | ||
+++ b/node_modules/react-native-vision-camera/ios/RNCameraView.mm | ||
@@ -34,26 +34,46 @@ + (ComponentDescriptorProvider)componentDescriptorProvider | ||
return concreteComponentDescriptorProvider<CameraViewComponentDescriptor>(); | ||
} | ||
|
||
+- (void) initCamera { | ||
+ static const auto defaultProps = std::make_shared<const CameraViewProps>(); | ||
+ _props = defaultProps; | ||
+ | ||
+ //The remaining part of the initializer is standard Objective-C code to create views and layout them with AutoLayout. Here we can change whatever we want to. | ||
+ _view = [[CameraView alloc] init]; | ||
+ _view.delegate = self; | ||
+ | ||
+ self.contentView = _view; | ||
+} | ||
+ | ||
- (instancetype)initWithFrame:(CGRect)frame | ||
{ | ||
self = [super initWithFrame:frame]; | ||
-if (self) { | ||
- static const auto defaultProps = std::make_shared<const CameraViewProps>(); | ||
- _props = defaultProps; | ||
+ if (self) { | ||
+ [self initCamera]; | ||
+ } | ||
+ return self; | ||
+} | ||
+ | ||
|
||
- //The remaining part of the initializer is standard Objective-C code to create views and layout them with AutoLayout. Here we can change whatever we want to. | ||
- _view = [[CameraView alloc] init]; | ||
- _view.delegate = self; | ||
+- (void) prepareForRecycle { | ||
+ [super prepareForRecycle]; | ||
|
||
- self.contentView = _view; | ||
+ _view.delegate = nil; | ||
+ _view = nil; | ||
+ self.contentView = nil; | ||
} | ||
|
||
-return self; | ||
+- (void) updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetrics oldLayoutMetrics:(const facebook::react::LayoutMetrics &)oldLayoutMetrics { | ||
+ [super updateLayoutMetrics:layoutMetrics oldLayoutMetrics:oldLayoutMetrics]; | ||
} | ||
|
||
// why we need this func -> https://reactnative.dev/docs/next/the-new-architecture/pillars-fabric-components#write-the-native-ios-code | ||
- (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps | ||
{ | ||
+ if (_view == nil) { | ||
+ [self initCamera]; | ||
+ } | ||
+ | ||
const auto &newViewProps = *std::static_pointer_cast<CameraViewProps const>(props); | ||
const auto &oldViewProps = *std::static_pointer_cast<CameraViewProps const>(_props); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.