@unifold/connect-react-native 0.1.27 → 0.1.29

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
@@ -36,7 +36,7 @@ Link Pay uses `@stripe/stripe-react-native`, which includes **native** code (App
36
36
 
37
37
  Importing `@unifold/connect-react-native` loads the Stripe UI registration in the same JS bundle as the provider. Ensure the peer dependencies in **Installation** above are installed so Metro does not duplicate native modules.
38
38
 
39
- `expo-constants` is an **optional** peer (pulled in by Expo). It is used only to read `merchantIdentifier` from your Stripe plugin config in JS; bare React Native apps should pass `config.stripeMerchantIdentifier` on `UnifoldProvider` instead.
39
+ **`expo-constants`** is a **dependency** of `@unifold/connect-react-native`, and the SDK **entry** includes a static `import "expo-constants"` so Metro always links the module. (A `require("expo-constants")` only inside the prebuilt UI was not always enough for Metro’s graph.) You can still set **`config.stripeMerchantIdentifier`** on `UnifoldProvider` to override or skip reading the plugin from constants.
40
40
 
41
41
  #### Expo Go vs development build vs prebuild
42
42
 
@@ -308,7 +308,7 @@ import type {
308
308
  | react-native-gesture-handler | >= 2.14.0 |
309
309
  | react-native-svg | >= 13.0.0 |
310
310
  | react-native-webview | >= 13.0.0 |
311
- | expo-constants (Expo only, optional) | >= 14.0.0used to mirror `merchantIdentifier` from the Stripe plugin into JS; omit on bare RN and set `config.stripeMerchantIdentifier` instead |
311
+ | expo-constants | Installed with Connect (>= 14)mirrors `merchantIdentifier` from the Stripe Expo plugin into JS; optional override via `config.stripeMerchantIdentifier` |
312
312
 
313
313
  ## Support
314
314