Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3558634
D8001.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8001.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8001: [native] Set RegistrationTextInput keyboardAppearance based on theme
Attached
Detach File
Event Timeline
Log In to Comment