Skip to content

Commit f726942

Browse files
authored
update uwp docs to refleect the react-native version changes. (#80)
Currently windows is not working with react-native 0.54+. Updating the catalog docs to reflect the changes needed to run.
1 parent 69db6db commit f726942

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -689,20 +689,33 @@ Let's create a simple app that integrates PSPDFKit and uses the react-native-psp
689689
1. Clone the repository. `git clone https://github.com/PSPDFKit/react-native.git`.
690690
2. From the command promt `cd react-native\samples\Catalog`.
691691
3. Make sure `react-native-cli` is installed: `npm install -g react-native-cli`.
692-
4. run `npm install`.
693-
5. Open the UWP catalog solution in `react-native\samples\Catalog\windows`.
694-
6. Accept and install any required extensions when prompted.
695-
7. If the settings windows opens, click on `Developer` and selected `yes`.
696-
8. Enter your license key in `react-native\samples\Catalog\windows\MainReactNativeHosts.cs`
692+
4. Edit `package.json` to change the version of `react-native` to `0.52.0`
693+
```diff
694+
"dependencies": {
695+
"react": "16.3.1",
696+
-"react-native": "0.55.4",
697+
+"react-native": "0.52.0",
698+
"react-native-fs": "2.10.14",
699+
"react-native-pspdfkit": "file:../../",
700+
"react-native-windows": "0.51.0-rc.0",
701+
"react-navigation": "^1.0.3",
702+
"rnpm-plugin-windows": "0.2.8"
703+
}
704+
```
705+
5. run `npm install`.
706+
6. Open the UWP catalog solution in `react-native\samples\Catalog\windows`.
707+
7. Accept and install any required extensions when prompted.
708+
8. If the settings windows opens, click on `Developer` and selected `yes`.
709+
9. Enter your license key in `react-native\samples\Catalog\windows\MainReactNativeHosts.cs`
697710
```
698711
protected override List<IReactPackage> Packages => new List<IReactPackage>
699712
{
700713
new MainReactPackage(),
701714
new ReactNativePSPDFKit.PSPDFKitPackage("INSERT LICENSE KEY HERE"),
702715
};
703716
```
704-
9. From the command prompt run `react-native run-windows`.
705-
10. Enter `y` to accept the certificate when prompted and allow socket access for reactive when prompted.
717+
10. From the command prompt run `react-native run-windows`.
718+
11. Enter `y` to accept the certificate when prompted and allow socket access for reactive when prompted.
706719
707720
#### API
708721

0 commit comments

Comments
 (0)