You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Defaults to first subscribtion offer in the discounts array
* changes common files to use temporary branch
* updated common android
* added new functions
* uses timestamp instead of identifier
* updates gitignore
* adds development.md, it's a wip and copied from notion
* Adds intro price class
* updates common version
* fixes tests
* updates common
* Fixes configure
* line breaks
* changes remap to export
* updates sdk versions
* fixes framework location
Make sure react-native-purchases is not part of the examples package.json
2
+
3
+
Setup the development by running:
4
+
5
+
yarn run setup.example
6
+
7
+
That will link the local package so that changes are automatically applied to the example
8
+
9
+
---
10
+
11
+
- Plug a device and run:
12
+
`react-native run-android`
13
+
or
14
+
`react-native run-ios`
15
+
16
+
---
17
+
18
+
To edit the iOS code, open the example project with XCode, there should be a subproject there RNPurchases.xcodeproj that can be used to edit the plugin.
19
+
If touching common files, make sure you copy them to their repo after editing them, so that changes are not lost when re linking the plugin (since it will download the dependencies again and overwrite your changes).
20
+
You can run the project from XCode without having to run `react-native run-ios`, but make sure that if you are touching `.ts` files, you run `npm run build` to compile the plugin.
21
+
22
+
In Android, the common code is uploaded to the repo. Make sure you commit the changes.
23
+
24
+
## Common issues
25
+
26
+
> ReferenceError: Module not registered in graph: /Users/cesardelavega/Development/repos/react-native/react-native-purchases/example/node_modules/@babel/runtime/helpers/get.js
27
+
28
+
Clean all the node_modules folders and restart the server
29
+
30
+
---
31
+
32
+
Make sure it's connected to the same wifi
33
+
34
+
---
35
+
36
+
Make sure the Android device doesn't have any app with the same package name you're running
37
+
38
+
---
39
+
40
+
Make sure your Android emulator has play services and you're logged in
0 commit comments