Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NewArch/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SERVICE_URL=https://example.com
SERVICE_PORT=8080
SERVICE_API_KEY=74970b3d-0bfb-4611-ba1d-dff7209ecc39
4 changes: 3 additions & 1 deletion NewArch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
"start": "react-native start",
"test": "jest",
"windows": "npx @react-native-community/cli run-windows",
"test:windows": "jest --config jest.config.windows.js"
"test:windows": "jest --config jest.config.windows.js",
"postinstall": "patch-package"
},
"dependencies": {
"@react-native-clipboard/clipboard": "^1.16.1",
"lowlight": "^1.17.0",
"react": "19.1.1",
"react-native": "0.82.0-rc.0",
"react-native-config": "^1.6.1",
"react-native-windows": "0.82.0-preview.8"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions NewArch/src/RNGalleryList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {ComponentListPage} from './ComponentListPage';
import {ButtonExamplePage} from './examples/ButtonExamplePage';
// import {CheckBoxExamplePage} from './examples/CheckBoxExamplePage';
import {ClipboardExamplePage} from './examples/ClipboardExamplePage';
// import {ConfigExamplePage} from './examples/ConfigExamplePage';
import {ConfigExamplePage} from './examples/ConfigExamplePage';
// import {DatePickerExamplePage} from './examples/DatePickerExamplePage';
// import {TimePickerExamplePage} from './examples/TimePickerExamplePage';
// import {SketchExamplePage} from './examples/SketchExamplePage';
Expand Down Expand Up @@ -114,12 +114,12 @@ export const RNGalleryList: Array<IRNGalleryExample> = [
type: 'System',
new: true,
},
// {
// key: 'Config',
// component: ConfigExamplePage,
// textIcon: '\uE753',
// type: 'Status and Info',
// },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should stay commented out until react-native-config is actually added as a dependency in the NewArch project.

{
key: 'Config',
component: ConfigExamplePage,
textIcon: '\uE753',
type: 'Status and Info',
},
// {
// key: 'DatePicker',
// component: DatePickerExamplePage,
Expand Down
2 changes: 1 addition & 1 deletion NewArch/src/examples/ConfigExamplePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ConfigExamplePage: React.FunctionComponent<{}> = () => {
documentation={[
{
label: 'Config',
url: 'https://github.com/luggit/react-native-config',
url: 'https://github.com/react-native-config/react-native-config',
},
]}>
<Example title="Config Information" code={example}>
Expand Down
16 changes: 15 additions & 1 deletion NewArch/windows/NewArch.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32929.385
Expand All @@ -9,6 +9,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NewArch", "NewArch\NewArch.
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Clipboard", "..\node_modules\@react-native-clipboard\clipboard\windows\Clipboard\Clipboard.vcxproj", "{90BFF18B-474B-445D-9847-B065853288D8}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RNCConfig", "..\node_modules\react-native-config\windows\RNCConfig\RNCConfig.vcxproj", "{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand Down Expand Up @@ -67,6 +69,18 @@ Global
{90BFF18B-474B-445D-9847-B065853288D8}.Release|x86.Build.0 = Release|Win32
{90BFF18B-474B-445D-9847-B065853288D8}.Release|ARM64.ActiveCfg = Release|ARM64
{90BFF18B-474B-445D-9847-B065853288D8}.Release|ARM64.Build.0 = Release|ARM64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Debug|x64.ActiveCfg = Debug|x64
# {F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Debug|x64.Build.0 = Debug|x64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Debug|x86.ActiveCfg = Debug|Win32
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Debug|x86.Build.0 = Debug|Win32
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Debug|ARM64.ActiveCfg = Debug|ARM64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Debug|ARM64.Build.0 = Debug|ARM64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Release|x64.ActiveCfg = Release|x64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Release|x64.Build.0 = Release|x64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Release|x86.ActiveCfg = Release|Win32
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Release|x86.Build.0 = Release|Win32
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Release|ARM64.ActiveCfg = Release|ARM64
{F1F427C9-66A2-4ED5-B482-3D583B6B20C7}.Release|ARM64.Build.0 = Release|ARM64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
5 changes: 5 additions & 0 deletions NewArch/windows/NewArch/AutolinkedNativeModules.g.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
// Includes from @react-native-clipboard/clipboard
#include <winrt/Clipboard.h>

// Includes from react-native-config
#include <winrt/RNCConfig.h>

namespace winrt::Microsoft::ReactNative
{

void RegisterAutolinkedNativeModulePackages(winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::ReactNative::IReactPackageProvider> const& packageProviders)
{
// IReactPackageProviders from @react-native-clipboard/clipboard
packageProviders.Append(winrt::Clipboard::ReactPackageProvider());
// IReactPackageProviders from react-native-config
packageProviders.Append(winrt::RNCConfig::ReactPackageProvider());
}

}
4 changes: 4 additions & 0 deletions NewArch/windows/NewArch/AutolinkedNativeModules.g.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
<ProjectReference Include="$(ProjectDir)..\..\node_modules\@react-native-clipboard\clipboard\windows\Clipboard\Clipboard.vcxproj">
<Project>{90BFF18B-474B-445D-9847-B065853288D8}</Project>
</ProjectReference>
<!-- Projects from react-native-config -->
<ProjectReference Include="$(ProjectDir)..\..\node_modules\react-native-config\windows\RNCConfig\RNCConfig.vcxproj">
<Project>{f1f427c9-66a2-4ed5-b482-3d583b6b20c7}</Project>
</ProjectReference>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions NewArch/windows/NewArch/NewArch.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PropertyGroup Label="Globals">
<CppWinRTOptimized>true</CppWinRTOptimized>
<MinimalCoreWin>true</MinimalCoreWin>
<WindowsAppSDKVerifyTransitiveDependencies>false</WindowsAppSDKVerifyTransitiveDependencies>
<ProjectGuid>{8481B8D7-6300-4DDF-9104-C7A4F1CAA241}</ProjectGuid>
<ProjectName>rngallery</ProjectName>
<Keyword>Win32Proj</Keyword>
Expand Down
Loading