Skip to content

Commit 165e709

Browse files
authored
Use internal TextInput instead of default for NumberInput (#954)
1 parent 63dac13 commit 165e709

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/components/NumberInput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useEffect, useState } from "react";
2-
import { TextInput as NativeTextInput } from "react-native";
32
import { isString, isNumber, isNaN } from "lodash";
3+
import { TextInput as TextInputRefType } from "react-native";
4+
import NativeTextInput from "./TextInput";
45
import { TextInputProps } from "./TextInput";
56
import { useDebounce, useOnUpdate } from "../hooks";
67

@@ -15,7 +16,7 @@ interface Props
1516
onChangeTextDelayed?: (value?: number) => void;
1617
}
1718

18-
const NumberInput = React.forwardRef<NativeTextInput, Props>(
19+
const NumberInput = React.forwardRef<TextInputRefType, Props>(
1920
(
2021
{
2122
onChangeText,

0 commit comments

Comments
 (0)