@rownd/react-native 2.11.5 → 2.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm install @rownd/react-native
16
16
 
17
17
  ### Expo development
18
18
 
19
- 1. Add `@rownd/native` as a plugin to your `app.json` file.
19
+ 1. Add `@rownd/react-native` as a plugin to your `app.json` file.
20
20
 
21
21
  ```json
22
22
  {
package/expo/plugin.js CHANGED
@@ -1,4 +1,4 @@
1
- const { withMainActivity } = require('expo/config-plugins');
1
+ const { withMainActivity, withInfoPlist } = require('expo/config-plugins');
2
2
 
3
3
  const withRowndMainActivity = (config) => {
4
4
  return withMainActivity(config, async (config) => {
@@ -36,4 +36,26 @@ const withRowndMainActivity = (config) => {
36
36
  });
37
37
  };
38
38
 
39
- module.exports.withRowndSDK = (config) => withRowndMainActivity(config);
39
+ const withRowndPlist = (config) => {
40
+ return withInfoPlist(config, async (config) => {
41
+ const LSApplicationQueriesSchemes =
42
+ config.modResults?.LSApplicationQueriesSchemes || [];
43
+ const additionalSchemes = ['googlegmail', 'ms-outlook', 'ymail'];
44
+ additionalSchemes.forEach((scheme) => {
45
+ if (!LSApplicationQueriesSchemes.includes(scheme)) {
46
+ LSApplicationQueriesSchemes.push(scheme);
47
+ }
48
+ });
49
+
50
+ return {
51
+ ...config,
52
+ modResults: {
53
+ ...config?.modResults,
54
+ LSApplicationQueriesSchemes,
55
+ },
56
+ };
57
+ });
58
+ };
59
+
60
+ module.exports.withRowndSDK = (config) =>
61
+ withRowndMainActivity(withRowndPlist(config));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rownd/react-native",
3
- "version": "2.11.5",
3
+ "version": "2.11.6",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "Rownd", "~> 2.8.2"
20
+ s.dependency "Rownd", "~> 2.8.3"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then