GeekyAnts / GeekyAnts/NativeBase

TextArea/index.d.ts references removed `autoCompleteType` prop

Open
#4,933 6 comments 3 reactions 1 assignee Claimed by @ankit-tailor View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

The TypeScript definitions for `TextArea` still reference the `autoCompleteType` prop which was removed from React Native recently.

### CodeSandbox/Snack link

N/A

### Steps to reproduce

1. Install `native-base` 3.4.1 into any project.
2. Look at `node_modules/native-base/lib/typescript/components/primitives/TextArea/index.d.ts`.

**Expected behavior:** The `.d.ts` file does not contain any reference to `autoCompleteType`, which was removed from React Native [in this commit](https://github.com/facebook/react-native/commit/18132c159773c6cedb2f74c7cf92a10987ea03d7), which was published as part of react-native 0.68.1.

**Actual behavior:** The `.d.ts` file references `autoCompleteType`. This is causing a TypeScript error in my project.

### NativeBase Version

3.4.1

### Platform

- [ ] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next

### Other Platform

TypeScript issue which applies to all platforms

### Additional Information

Here is a prettified version of the .d.ts file for your convenience

```ts
import React from "react";
import type { InterfaceInputProps } from "../Input/types";
import type { PlatformProps } from "../../../components/types";
export interface ITextAreaProps
extends Omit<
InterfaceInputProps,
"_web" | "_android" | "_ios" | "_light" | "_dark" | "_important"
>,
PlatformProps {
/**
* Maps to react-native TextInput's numberOfLines.
*/
totalLines?: number;
}
declare const _default: React.MemoExoticComponent<
React.ForwardRefExoticComponent<
Pick<
ITextAreaProps,
| "value"
| "p"
| "style"
| "margin"
| "m"
| "marginTop"
| "mt"
| "marginRight"
| "mr"
| "marginBottom"
| "mb"
| "marginLeft"
| "ml"
| "marginX"
| "mx"
| "marginY"
| "my"
| "padding"
| "paddingTop"
| "pt"
| "paddingRight"
| "pr"
| "paddingBottom"
| "pb"
| "paddingLeft"
| "pl"
| "paddingX"
| "px"
| "paddingY"
| "py"
| "borderWidth"
| "borderStyle"
| "borderColor"
| "borderRadius"
| "borderTopWidth"
| "borderTopStyle"
| "borderTopColor"
| "borderTopLeftRadius"
| "borderTopRightRadius"
| "borderRightWidth"
| "borderRightStyle"
| "borderRightColor"
| "borderBottomWidth"
| "borderBottomStyle"
| "borderBottomColor"
| "borderBottomLeftRadius"
| "borderBottomRightRadius"
| "borderLeftWidth"
| "borderLeftStyle"
| "borderLeftColor"
| "borderX"
| "borderY"
| "width"
| "w"
| "height"
| "h"
| "display"
| "minWidth"
| "minW"
| "minH"
| "minHeight"
| "maxWidth"
| "maxW"
| "maxHeight"
| "maxH"
| "size"
| "overflow"
| "overflowX"
| "overflowY"
| "alignItems"
| "alignContent"
| "justifyItems"
| "justifyContent"
| "flexWrap"
| "flexDirection"
| "flex"
| "flexGrow"
| "flexShrink"
| "flexBasis"
| "alignSelf"
| "position"
| "zIndex"
| "top"
| "right"
| "bottom"
| "left"
| "bg"
| "backgroundColor"
| "bgColor"
| "isDisabled"
| "opacity"
| "variant"
| "focusOutlineColor"
| "inValidOutlineColor"
| "shadow"
| "color"
| "tintColor"
| "textDecorationColor"
| "fontFamily"
| "fontSize"
| "fontWeight"
| "lineHeight"
| "letterSpacing"
| "textDecorationLine"
| "textAlign"
| "fontStyle"
| "textTransform"
| "textDecoration"
| "txtDecor"
| "borderTopRadius"
| "borderLeftRadius"
| "borderRightRadius"
| "rounded"
| "roundedTopLeft"
| "roundedTopRight"
| "roundedBottomLeft"
| "roundedBottomRight"
| "roundedTop"
| "borderBottomRadius"
| "roundedBottom"
| "roundedLeft"
| "roundedRight"
| "flexDir"
| "boxSize"
| "background"
| "pointerEvents"
| "testID"
| "textAlignVertical"
| "type"
| "isReadOnly"
| "isInvalid"
| "isFocused"
| "isHovered"
| "_web"
| "_ios"
| "_android"
| "_light"
| "_dark"
| "_readOnly"
| "_invalid"
| "_focus"
| "_hover"
| "_disabled"
| "_important"
| "defaultValue"
| "onChange"
| "allowFontScaling"
| "numberOfLines"
| "onLayout"
| "nativeID"
| "maxFontSizeMultiplier"
| "selectionColor"
| "textBreakStrategy"
| "accessible"
| "accessibilityActions"
| "accessibilityLabel"
| "accessibilityRole"
| "accessibilityState"
| "accessibilityHint"
| "accessibilityValue"
| "onAccessibilityAction"
| "accessibilityLiveRegion"
| "importantForAccessibility"
| "accessibilityElementsHidden"
| "accessibilityViewIsModal"
| "onAccessibilityEscape"
| "onAccessibilityTap"
| "onMagicTap"
| "accessibilityIgnoresInvertColors"
| "hitSlop"
| "removeClippedSubviews"
| "collapsable"
| "needsOffscreenAlphaCompositing"
| "renderToHardwareTextureAndroid"
| "focusable"
| "shouldRasterizeIOS"
| "isTVSelectable"
| "hasTVPreferredFocus"
| "tvParallaxProperties"
| "tvParallaxShiftDistanceX"
| "tvParallaxShiftDistanceY"
| "tvParallaxTiltAngle"
| "tvParallaxMagnification"
| "onStartShouldSetResponder"
| "onMoveShouldSetResponder"
| "onResponderEnd"
| "onResponderGrant"
| "onResponderReject"
| "onResponderMove"
| "onResponderRelease"
| "onResponderStart"
| "onResponderTerminationRequest"
| "onResponderTerminate"
| "onStartShouldSetResponderCapture"
| "onMoveShouldSetResponderCapture"
| "onTouchStart"
| "onTouchMove"
| "onTouchEnd"
| "onTouchCancel"
| "onTouchEndCapture"
| "onFocus"
| "onBlur"
| "autoCapitalize"
| "autoCorrect"
| "autoFocus"
| "blurOnSubmit"
| "caretHidden"
| "contextMenuHidden"
| "editable"
| "keyboardType"
| "maxLength"
| "multiline"
| "onChangeText"
| "onContentSizeChange"
| "onEndEditing"
| "onSelectionChange"
| "onSubmitEditing"
| "onTextInput"
| "onScroll"
| "onKeyPress"
| "placeholder"
| "placeholderTextColor"
| "returnKeyType"
| "secureTextEntry"
| "selectTextOnFocus"
| "selection"
| "inputAccessoryViewID"
| "clearButtonMode"
| "clearTextOnFocus"
| "dataDetectorTypes"
| "enablesReturnKeyAutomatically"
| "keyboardAppearance"
| "passwordRules"
| "rejectResponderTermination"
| "selectionState"
| "spellCheck"
| "textContentType"
| "scrollEnabled"
| "autoCompleteType"
| "importantForAutofill"
| "disableFullscreenUI"
| "inlineImageLeft"
| "inlineImagePadding"
| "returnKeyLabel"
| "underlineColorAndroid"
| "showSoftInputOnFocus"
| "isRequired"
| "isFullWidth"
| "InputLeftElement"
| "leftElement"
| "InputRightElement"
| "rightElement"
| "wrapperRef"
| "_input"
| "_stack"
| "totalLines"
> &
React.RefAttributes
>
>;
export default _default;

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.