@vuoma/react-native-ui 0.1.0 → 0.1.1
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 +1 -1
- package/dist/auth.js +1 -1
- package/package.json +1 -1
- package/src/auth.tsx +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ under the new name must be verified before registry installation. Verification
|
|
|
10
10
|
forms preserve the complete six- or eight-digit code, including leading zeroes.
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
npm install @vuoma/react-native-ui@0.1.
|
|
13
|
+
npm install @vuoma/react-native-ui@0.1.1 @vuoma/sdk@0.2.2
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Use React 19.3 and React Native 0.88 or compatible versions in the declared peer
|
package/dist/auth.js
CHANGED
|
@@ -43,7 +43,7 @@ export function AccountDetailsForm({ theme, email, onEmailChange, name, onNameCh
|
|
|
43
43
|
onEmailChange(value); }, onSubmitEditing: submit, placeholder: "you@example.com", placeholderTextColor: theme.colors.muted, ref: value => { localEmailRef.current = value; if (typeof emailInputRef === "function")
|
|
44
44
|
emailInputRef(value);
|
|
45
45
|
else if (emailInputRef)
|
|
46
|
-
emailInputRef.current = value; }, returnKeyType: "go", style: inputStyle(theme), textContentType: "
|
|
46
|
+
emailInputRef.current = value; }, returnKeyType: "go", style: inputStyle(theme), textContentType: "username", value: email }) }), _jsx(AuthMessage, { theme: theme, children: message }), _jsx(AuthButton, { theme: theme, disabled: !canSubmit, busy: busy, label: busy ? "Sending code…" : "Send code", onPress: submit })] });
|
|
47
47
|
}
|
|
48
48
|
export function VerificationCodeForm({ theme, code, onCodeChange, inputRef, busy = false, canSubmit, onSubmit, onResend, onEditEmail, message }) {
|
|
49
49
|
const ready = canSubmit && /^(?:\d{6}|\d{8})$/u.test(code);
|
package/package.json
CHANGED
package/src/auth.tsx
CHANGED
|
@@ -148,7 +148,7 @@ export function AccountDetailsForm({ theme, email, onEmailChange, name, onNameCh
|
|
|
148
148
|
<TextInput accessibilityLabel="Email" autoCapitalize="none" autoComplete="email" autoCorrect={false} editable={!busy} inputMode="email" keyboardType="email-address" maxLength={320}
|
|
149
149
|
onChangeText={value => { if (!busy) onEmailChange(value) }} onSubmitEditing={submit} placeholder="you@example.com" placeholderTextColor={theme.colors.muted}
|
|
150
150
|
ref={value => { localEmailRef.current = value; if (typeof emailInputRef === "function") emailInputRef(value); else if (emailInputRef) emailInputRef.current = value }}
|
|
151
|
-
returnKeyType="go" style={inputStyle(theme)} textContentType="
|
|
151
|
+
returnKeyType="go" style={inputStyle(theme)} textContentType="username" value={email} />
|
|
152
152
|
</Field>
|
|
153
153
|
<AuthMessage theme={theme}>{message}</AuthMessage>
|
|
154
154
|
<AuthButton theme={theme} disabled={!canSubmit} busy={busy} label={busy ? "Sending code…" : "Send code"} onPress={submit} />
|