Skip to content

Commit

Permalink
hm - broken
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Oct 4, 2024
1 parent 0403357 commit 5104ffc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
33 changes: 28 additions & 5 deletions src/Expensify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,41 @@ export default function Expensify() {
style={{
flex: 1,
justifyContent: 'center',
// alignItems: 'center',
alignItems: 'center',
}}
>
{/* <BaseTextInput
<BaseTextInput
autoGrow
autoFocus
shouldDelayFocus
placeholder="0"
inputStyle={[styles.baseTextInput]}
inputStyle={[
// styles.baseTextInput,
{},
{
fontSize: 40,
color: 'white',
// height: 52,
// borderBottomLeftRadius: 0,
// borderBottomRightRadius: 0,
// borderTopLeftRadius: 0,
// borderTopRightRadius: 0,
// borderWidth: 0,
// fontFamily: 'Expensify New Kansas',
// fontStyle: 'normal',
// fontWeight: '500',
// lineHeight: undefined,
// paddingBottom: 0,
// paddingHorizontal: 0,
// paddingLeft: 0,
// paddingRight: 4,
// paddingTop: 0,
// paddingVertical: 0,
},
]}
// containerStyles={styles.iouAmountTextInputContainer}
/> */}
<MoneyRequestAmountForm onSubmitButtonPress={() => {}} />
/>
{/* <MoneyRequestAmountForm onSubmitButtonPress={() => {}} /> */}

<SplashScreenHider onHide={() => {}} />
</View>
Expand Down
8 changes: 4 additions & 4 deletions src/components/TextInput/BaseTextInput/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,19 +345,19 @@ function BaseTextInput(
!autoGrow && styles.flex1,
!autoGrow && styles.w100,
inputStyle,
(!hasLabel || isMultiline) && styles.pv0,
inputPaddingLeft,
// (!hasLabel || isMultiline) && styles.pv0,
// inputPaddingLeft,
inputProps.secureTextEntry && styles.secureInput,

!isMultiline && {height, lineHeight: undefined},
// !isMultiline && {height, lineHeight: undefined},

// Stop scrollbar flashing when breaking lines with autoGrowHeight enabled.

Check failure on line 354 in src/components/TextInput/BaseTextInput/index.native.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Type 'ViewStyle | { verticalAlign: "top"; }' is not assignable to type 'TextStyle | Falsy | RegisteredStyle<TextStyle> | RecursiveArray<TextStyle | Falsy | RegisteredStyle<TextStyle>> | readonly (TextStyle | ... 1 more ... | RegisteredStyle<...>)[]'.
...(autoGrowHeight
? [StyleUtils.getAutoGrowHeightInputStyle(textInputHeight, typeof maxAutoGrowHeight === 'number' ? maxAutoGrowHeight : 0), styles.verticalAlignTop]
: []),
// Add disabled color theme when field is not editable.

Check failure on line 358 in src/components/TextInput/BaseTextInput/index.native.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Type 'false | ViewStyle | { verticalAlign: "top"; } | { color: string; WebkitTextFillColor?: string | undefined; WebkitOpacity?: number | undefined; backgroundColor: string; borderBottomWidth: number; borderColor: string; } | undefined' is not assignable to type 'TextStyle | Falsy | RegisteredStyle<TextStyle> | RecursiveArray<TextStyle | Falsy | RegisteredStyle<TextStyle>> | readonly (TextStyle | ... 1 more ... | RegisteredStyle<...>)[]'.
inputProps.disabled && styles.textInputDisabled,
styles.pointerEventsAuto,
// styles.pointerEventsAuto,
]}
multiline={isMultiline}
maxLength={maxLength}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/iou/MoneyRequestAmountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function MoneyRequestAmountForm(
}}
shouldKeepUserInput={shouldKeepUserInput}
moneyRequestAmountInputRef={moneyRequestAmountInput}
inputStyle={[styles.iouAmountTextInput, {backgroundColor: 'orange'}]}
inputStyle={[styles.iouAmountTextInput]}
containerStyle={[styles.iouAmountTextInputContainer]}
/>
{!!formError && (
Expand Down

0 comments on commit 5104ffc

Please sign in to comment.