Skip to content

Commit

Permalink
Merge branch 'main' into @jakex7/filtersFeColorMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakex7 committed Jul 2, 2024
2 parents 49e6c6e + 2514ac4 commit 7852a57
Show file tree
Hide file tree
Showing 30 changed files with 1,404 additions and 1,142 deletions.
19 changes: 11 additions & 8 deletions Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,40 @@
"start": "react-native start",
"start-webpack": "webpack serve",
"test": "jest",
"tsc": "tsc --noEmit"
"tsc": "tsc --noEmit",
"postinstall": "patch-package"
},
"dependencies": {
"react": "18.2.0",
"react-dom": "^18.2.0",
"react-native": "0.74.0",
"react-native": "0.74.2",
"react-native-reanimated": "3.9.0-nightly-20240421-474f6983d",
"react-native-svg": "link:../",
"react-native-web": "^0.19.10",
"react-native-windows": "0.73.2"
"react-native-windows": "0.74.9"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.74.81",
"@react-native/eslint-config": "0.74.81",
"@react-native/metro-config": "0.74.81",
"@react-native/typescript-config": "0.74.81",
"@react-native/babel-preset": "0.74.84",
"@react-native/eslint-config": "0.74.84",
"@react-native/metro-config": "0.74.84",
"@react-native/typescript-config": "0.74.84",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"babel-loader": "^9.1.2",
"eslint": "^8.19.0",
"file-loader": "^6.2.0",
"jest": "^29.6.3",
"metro-config": "^0.80.9",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4",
"metro-config": "^0.80.2",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
Expand Down
21 changes: 21 additions & 0 deletions Example/patches/react-native-windows+0.74.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/node_modules/react-native-windows/Microsoft.ReactNative/Modules/NativeUIManager.cpp b/node_modules/react-native-windows/Microsoft.ReactNative/Modules/NativeUIManager.cpp
index 97c1691..8136008 100644
--- a/node_modules/react-native-windows/Microsoft.ReactNative/Modules/NativeUIManager.cpp
+++ b/node_modules/react-native-windows/Microsoft.ReactNative/Modules/NativeUIManager.cpp
@@ -309,16 +309,10 @@ static YGValue YGValueOrDefault(
return YGValue{static_cast<float>(pct.asDouble()), YGUnitPercent};
}
if (str.length() > 2 && (str.compare(str.length() - 2, 2, "pt") || str.compare(str.length() - 2, 2, "px"))) {
- shadowNode.RedBox(
- "Value '" + value.AsString() + "' for " + key + " is invalid. Cannot be converted to YGValue. '" +
- str.substr((str.length() - 2), 2) + "' unit not needed. Simply use integer value.");
return defaultValue;
}
}

- shadowNode.RedBox(
- "Value '" + value.AsString() + "' for " + key +
- " is invalid. Cannot be converted to YGValue. Did you forget the %? Otherwise, simply use integer value.");
return defaultValue;
}

108 changes: 61 additions & 47 deletions Example/windows/Example.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32929.385
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Example", "Example\Example.vcxproj", "{C5ED9431-C380-4121-9B54-555EDFDBE44A}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Example", "Example\Example.vcxproj", "{0D798B26-17A1-497A-8524-201A4EAC00DC}"
ProjectSection(ProjectDependencies) = postProject
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {F7D32BD0-2749-483E-9A0D-1635EF7E3136}
EndProjectSection
Expand Down Expand Up @@ -36,44 +36,33 @@ EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RNSVG", "..\node_modules\react-native-svg\windows\RNSVG\RNSVG.vcxproj", "{7ACF84EC-EFBA-4043-8E14-40B159508902}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{2049dbe9-8d13-42c9-ae4b-413ae38fffd0}*SharedItemsImports = 9
..\node_modules\react-native-windows\Mso\Mso.vcxitems*{84e05bfa-cbaf-4f0d-bfb6-4ce85742a57e}*SharedItemsImports = 9
..\node_modules\react-native-windows\Chakra\Chakra.vcxitems*{c38970c0-5fbf-4d69-90d8-cbac225ae895}*SharedItemsImports = 9
..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems*{da8b35b3-da00-4b02-bde6-6a397b3fd46b}*SharedItemsImports = 9
..\node_modules\react-native-windows\include\Include.vcxitems*{ef074ba1-2d54-4d49-a28e-5e040b47cd2e}*SharedItemsImports = 9
..\node_modules\react-native-windows\Chakra\Chakra.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
..\node_modules\react-native-windows\Mso\Mso.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Debug|ARM64 = Debug|ARM64
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
Release|ARM64 = Release|ARM64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|ARM64.ActiveCfg = Debug|ARM64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|ARM64.Build.0 = Debug|ARM64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|ARM64.Deploy.0 = Debug|ARM64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|x64.ActiveCfg = Debug|x64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|x64.Build.0 = Debug|x64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|x64.Deploy.0 = Debug|x64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|x86.ActiveCfg = Debug|Win32
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|x86.Build.0 = Debug|Win32
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Debug|x86.Deploy.0 = Debug|Win32
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|ARM64.ActiveCfg = Release|ARM64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|ARM64.Build.0 = Release|ARM64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|ARM64.Deploy.0 = Release|ARM64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|x64.ActiveCfg = Release|x64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|x64.Build.0 = Release|x64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|x64.Deploy.0 = Release|x64
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|x86.ActiveCfg = Release|Win32
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|x86.Build.0 = Release|Win32
{C5ED9431-C380-4121-9B54-555EDFDBE44A}.Release|x86.Deploy.0 = Release|Win32
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|ARM64.ActiveCfg = Debug|ARM64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|ARM64.Build.0 = Debug|ARM64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|ARM64.Deploy.0 = Debug|ARM64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|x64.ActiveCfg = Debug|x64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|x64.Build.0 = Debug|x64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|x64.Deploy.0 = Debug|x64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|x86.ActiveCfg = Debug|Win32
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|x86.Build.0 = Debug|Win32
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Debug|x86.Deploy.0 = Debug|Win32
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|ARM64.ActiveCfg = Release|ARM64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|ARM64.Build.0 = Release|ARM64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|ARM64.Deploy.0 = Release|ARM64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|x64.ActiveCfg = Release|x64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|x64.Build.0 = Release|x64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|x64.Deploy.0 = Release|x64
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|x86.ActiveCfg = Release|Win32
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|x86.Build.0 = Release|Win32
{0D798B26-17A1-497A-8524-201A4EAC00DC}.Release|x86.Deploy.0 = Release|Win32
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.ActiveCfg = Debug|ARM64
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.Build.0 = Debug|ARM64
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x64.ActiveCfg = Debug|x64
Expand All @@ -86,6 +75,20 @@ Global
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x64.Build.0 = Release|x64
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x86.ActiveCfg = Release|Win32
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x86.Build.0 = Release|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.ActiveCfg = Debug|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.Build.0 = Debug|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.ActiveCfg = Debug|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.Build.0 = Debug|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.ActiveCfg = Debug|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Build.0 = Debug|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Deploy.0 = Debug|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.ActiveCfg = Release|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.Build.0 = Release|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.ActiveCfg = Release|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.Build.0 = Release|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.ActiveCfg = Release|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Build.0 = Release|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Deploy.0 = Release|Win32
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.ActiveCfg = Debug|ARM64
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.Build.0 = Debug|ARM64
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -122,26 +125,27 @@ Global
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x64.Build.0 = Release|x64
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.ActiveCfg = Release|Win32
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.Build.0 = Release|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.ActiveCfg = Debug|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.Build.0 = Debug|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.ActiveCfg = Debug|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.Build.0 = Debug|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.ActiveCfg = Debug|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Build.0 = Debug|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Deploy.0 = Debug|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.ActiveCfg = Release|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.Build.0 = Release|ARM64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.ActiveCfg = Release|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.Build.0 = Release|x64
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.ActiveCfg = Release|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Build.0 = Release|Win32
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Deploy.0 = Release|Win32
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|ARM64.ActiveCfg = Debug|ARM64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|ARM64.Build.0 = Debug|ARM64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|x64.ActiveCfg = Debug|x64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|x64.Build.0 = Debug|x64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|x86.ActiveCfg = Debug|Win32
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|x86.Build.0 = Debug|Win32
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Debug|x86.Deploy.0 = Debug|Win32
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|ARM64.ActiveCfg = Release|ARM64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|ARM64.Build.0 = Release|ARM64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|x64.ActiveCfg = Release|x64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|x64.Build.0 = Release|x64
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|x86.ActiveCfg = Release|Win32
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|x86.Build.0 = Release|Win32
{7ACF84EC-EFBA-4043-8E14-40B159508902}.Release|x86.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A990658C-CE31-4BCC-976F-0FC6B1AF693D} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{14B93DC8-FD93-4A6D-81CB-8BC96644501C} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{C38970C0-5FBF-4D69-90D8-CBAC225AE895} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
Expand All @@ -150,9 +154,19 @@ Global
{2049DBE9-8D13-42C9-AE4B-413AE38FFFD0} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{84E05BFA-CBAF-4F0D-BFB6-4CE85742A57E} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{EF074BA1-2D54-4D49-A28E-5E040B47CD2E} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
{14B93DC8-FD93-4A6D-81CB-8BC96644501C} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{2049dbe9-8d13-42c9-ae4b-413ae38fffd0}*SharedItemsImports = 9
..\node_modules\react-native-windows\Mso\Mso.vcxitems*{84e05bfa-cbaf-4f0d-bfb6-4ce85742a57e}*SharedItemsImports = 9
..\node_modules\react-native-windows\Chakra\Chakra.vcxitems*{c38970c0-5fbf-4d69-90d8-cbac225ae895}*SharedItemsImports = 9
..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems*{da8b35b3-da00-4b02-bde6-6a397b3fd46b}*SharedItemsImports = 9
..\node_modules\react-native-windows\include\Include.vcxitems*{ef074ba1-2d54-4d49-a28e-5e040b47cd2e}*SharedItemsImports = 9
..\node_modules\react-native-windows\Chakra\Chakra.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
..\node_modules\react-native-windows\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
..\node_modules\react-native-windows\Mso\Mso.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
EndGlobalSection
EndGlobal
4 changes: 2 additions & 2 deletions Example/windows/Example/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ App::App() noexcept
{
#if BUNDLE
JavaScriptBundleFile(L"index.windows");
InstanceSettings().UseWebDebugger(false);
InstanceSettings().UseFastRefresh(false);
#else
JavaScriptBundleFile(L"index");
InstanceSettings().UseWebDebugger(true);
InstanceSettings().UseFastRefresh(true);
#endif

#if _DEBUG
InstanceSettings().UseDirectDebugger(true);
InstanceSettings().UseDeveloperSupport(true);
#else
InstanceSettings().UseDirectDebugger(false);
InstanceSettings().UseDeveloperSupport(false);
#endif

Expand Down
4 changes: 2 additions & 2 deletions Example/windows/Example/Example.vcxproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This project was created with react-native-windows 0.73.2 -->
<!-- This project was created with react-native-windows 0.74.9 -->
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
<PropertyGroup Label="Globals">
<CppWinRTOptimized>true</CppWinRTOptimized>
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
<MinimalCoreWin>true</MinimalCoreWin>
<ProjectGuid>{c5ed9431-c380-4121-9b54-555edfdbe44a}</ProjectGuid>
<ProjectGuid>{0d798b26-17a1-497a-8524-201a4eac00dc}</ProjectGuid>
<ProjectName>Example</ProjectName>
<RootNamespace>Example</RootNamespace>
<DefaultLanguage>en-US</DefaultLanguage>
Expand Down
Loading

0 comments on commit 7852a57

Please sign in to comment.