tf-checkout-react-native 2.0.0-beta.13 → 2.0.0-beta.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tf-checkout-react-native",
3
- "version": "2.0.0-beta.13",
3
+ "version": "2.0.0-beta.14",
4
4
  "description": "TheTicketFairy ReactNative Checkout library",
5
5
  "homepage": "https://github.com/theticketfairy/tf-shared-libraries#readme",
6
6
  "author": "The Ticket Fairy",
@@ -36,10 +36,11 @@
36
36
  "!**/__mocks__",
37
37
  "!**/.*",
38
38
  "!scripts/verify-wallet-context.cjs",
39
- "!scripts/verify-provider-uri.cjs"
39
+ "!scripts/verify-provider-uri.cjs",
40
+ "!scripts/verify-native-textarea.cjs"
40
41
  ],
41
42
  "scripts": {
42
- "test": "node scripts/verify-discussion-support.cjs && node scripts/verify-wallet-context.cjs && node scripts/verify-provider-uri.cjs && jest --passWithNoTests",
43
+ "test": "node scripts/verify-discussion-support.cjs && node scripts/verify-wallet-context.cjs && node scripts/verify-provider-uri.cjs && node scripts/verify-native-textarea.cjs && jest --passWithNoTests",
43
44
  "typecheck": "tsc -p tsconfig.build.json",
44
45
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
45
46
  "lint:fix": "eslint \"**/*.{js,ts,tsx}\" --fix",
@@ -8,8 +8,7 @@
8
8
  * - `<select>` and `radio` (single choice) both render as the native `Select`
9
9
  * sheet — there is no native radio primitive.
10
10
  * - `select_multi` renders a column of native `Checkbox` rows.
11
- * - there is no multiline `Textarea` primitive, so `textarea` falls back to a
12
- * single-line `Input` (value parity preserved).
11
+ * - `textarea` uses the native multiline Input, preserving line breaks.
13
12
  */
14
13
  import React, { type FC } from 'react'
15
14
  import { Image, View } from 'react-native'
@@ -94,11 +93,15 @@ export const CustomFieldInput: FC<CustomFieldInputProps> = ({
94
93
 
95
94
  switch (field.type) {
96
95
  case 'textarea':
97
- // Native adaptation: no multiline Textarea primitive — single-line Input.
98
96
  return (
99
97
  <Field label={field.label} required={field.required} error={error}>
100
98
  {desc}
101
- <Input value={asString(value)} onChangeText={onChange} invalid={invalid} />
99
+ <Input
100
+ multiline
101
+ value={asString(value)}
102
+ onChangeText={onChange}
103
+ invalid={invalid}
104
+ />
102
105
  </Field>
103
106
  )
104
107
  case 'select':