Page MenuHomePhabricator

D8001.diff
No OneTemporary

D8001.diff

diff --git a/native/account/registration/registration-text-input.react.js b/native/account/registration/registration-text-input.react.js
--- a/native/account/registration/registration-text-input.react.js
+++ b/native/account/registration/registration-text-input.react.js
@@ -3,12 +3,23 @@
import * as React from 'react';
import { TextInput } from 'react-native';
-import { useStyles, useColors } from '../../themes/colors.js';
+import {
+ useStyles,
+ useColors,
+ useKeyboardAppearance,
+} from '../../themes/colors.js';
type Props = React.ElementConfig<typeof TextInput>;
function ForwardedRegistrationTextInput(props: Props, ref): React.Node {
- const { onFocus, onBlur, style, placeholderTextColor, ...rest } = props;
+ const {
+ onFocus,
+ onBlur,
+ style,
+ placeholderTextColor,
+ keyboardAppearance,
+ ...rest
+ } = props;
const [focused, setFocused] = React.useState(false);
const ourOnFocus = React.useCallback(
@@ -39,6 +50,9 @@
const ourPlaceholderTextColor =
placeholderTextColor ?? colors.panelSecondaryForegroundBorder;
+ const themeKeyboardAppearance = useKeyboardAppearance();
+ const ourKeyboardAppearance = keyboardAppearance ?? themeKeyboardAppearance;
+
return (
<TextInput
{...rest}
@@ -46,6 +60,7 @@
placeholderTextColor={ourPlaceholderTextColor}
onFocus={ourOnFocus}
onBlur={ourOnBlur}
+ keyboardAppearance={ourKeyboardAppearance}
ref={ref}
/>
);

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 4:41 AM (6 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2723692
Default Alt Text
D8001.diff (1 KB)

Event Timeline