Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[RN] Pass custom fontfamily to placeholders
  • Loading branch information
ikethirdweb committed Oct 19, 2023
commit 5c614ae82e83a42839626e40daed76df45b8e37c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ const ConnectAppField = () => {
placeholder: "wc://...",
placeholderTextColor: theme.colors.textSecondary,
numberOfLines: 1,
style: {
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
},
}}
containerProps={{
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ export const LocalWalletImportModal = ({
placeholder: "Private key / Mnemonic",
placeholderTextColor: theme.colors.textSecondary,
onChangeText: onPrivateKeyEntered,
style: {
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
},
}}
containerProps={{ pl: "xxs" }}
/>
Expand Down
6 changes: 5 additions & 1 deletion packages/react-native/src/evm/components/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export const PasswordInput = ({
pl="xxs"
>
<TextInput
style={{ ...styles.textInput, color: theme.colors.textPrimary }}
style={{
...styles.textInput,
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
}}
secureTextEntry={!showPassword}
textContentType="none"
returnKeyType={"done"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ const SendFundsForm = ({
onChangeText={setReceiverAddress}
style={{
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
textAlign: "left",
flex: 1,
height: 40,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export function TokenSelector(props: {
onChangeText={setInput}
style={{
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
textAlign: "left",
flex: 1,
height: 40,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const MagicSelectionUI: React.FC<SelectUIProps<MagicLink>> = (props) => {
style: {
fontSize: 14,
color: theme.colors.textPrimary,
fontFamily: theme.textVariants.defaults.fontFamily,
lineHeight: 16,
padding: 0,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export function WalletConnectUI({
style={{
...styles.textInput,
color: theme.colors.textSecondary,
fontFamily: theme.textVariants.defaults.fontFamily,
}}
/>
</Box>
Expand Down