Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-device-info
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-device-info
Commits
81b0c20f
Commit
81b0c20f
authored
Mar 04, 2018
by
Mehdi Achour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update react-native-windows instructions
parent
cd1c6a83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
README.md
README.md
+2
-5
No files found.
README.md
View file @
81b0c20f
...
...
@@ -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
`Main
Page
.cs`
for your app and edit the file like so:
*
open up
`Main
ReactNativeHost
.cs`
for your app and edit the file like so:
```
diff
+ using RNDeviceInfo;
......
get
{
return new List<IReactPackage>
protected override List<IReactPackage> Packages => new List<IReactPackage>
{
new MainReactPackage(),
+ new RNDeviceInfoPackage(),
};
}
```
(Thanks to @josephan for writing the instructions)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment