Skip to content

An react-native Windows example using Clang compiler hosted inside a Win32 application

Notifications You must be signed in to change notification settings

christophpurrer/react-native-windows-clang

Repository files navigation

react-native-windows-clang

Sample using react-native-windows inside a plain old win32 window, using the Clang compiler (WIP)

Start

To clone and run this repository you'll need Git, Node.js (which comes with npm) installed on your computer.

From your command line:

# Clone this repository
git clone https://github.com/christophpurrer/react-native-windows-clang.git
# Change to the repository
cd react-native-windows-clang
# Install dependencies - This will patch react-native-windows via `postinstall` step
yarn install
# Start Metro
yarn start

Building using Visual Studio 2019 ...

1.) Open windows\rnw.sln and set the startup project to win32

2.) [Optionally] Choose Build / Build Solution

2.) Run win32 project

Running react-native-windows inside a win32 window

Building from command line ...

[Tba]

How this project was setup?

This sneaky example leverages a set of technologies:

1.) Xaml Islands >> Sample

2.a) Embed Manifest via command line with mt.exe

2.b) Reg-Free WinRT for activation >> Sample

3.) Generate most minimal resources.pri via MakePri.exe

4.) VCRT Forwarding DLLs for runtime

See WinRT documentation in case you are unfamiliar with it.

Not needed anymore:

Some words of caution

About

An react-native Windows example using Clang compiler hosted inside a Win32 application

Resources

Stars

Watchers

Forks

Packages

No packages published