Skip to content

Commit

Permalink
docs: update react-native-windows instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
machour committed Mar 4, 2018
1 parent cd1c6a8 commit 81b0c20
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,16 @@ include ':app'
* Navigate to `./<app-name>/node_modules/react-native-device-info/windows/RNDeviceInfo` and add `RNDeviceInfo.csproj`
* this time right click on your React Native Windows app under your solutions directory and click Add > Reference...
* check the `RNDeviceInfo` you just added and press ok
* open up `MainPage.cs` for your app and edit the file like so:
* open up `MainReactNativeHost.cs` for your app and edit the file like so:

```diff
+ using RNDeviceInfo;
......
get
{
return new List<IReactPackage>
{
new MainReactPackage(),
+ new RNDeviceInfoPackage(),
};
}
protected override List<IReactPackage> Packages => new List<IReactPackage>
{
new MainReactPackage(),
+ new RNDeviceInfoPackage(),
};
```

(Thanks to @josephan for writing the instructions)
Expand Down

0 comments on commit 81b0c20

Please sign in to comment.