Skip to content

Commit

Permalink
fix: initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
enahum committed Jan 26, 2023
1 parent ec55b13 commit bdf1026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function InternalTextInput(props) {

const [mostRecentEventCount, setMostRecentEventCount] = useState(0);

const [lastNativeText, setLastNativeText] = useState(props.value);
const [lastNativeText, setLastNativeText] = useState(null);
const [lastNativeSelectionState, setLastNativeSelection] = useState({
selection,
mostRecentEventCount,
Expand Down
2 changes: 1 addition & 1 deletion src/ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const PasteInput = forwardRef((props: PasteInputProps, ref) => {
const [mostRecentEventCount, setMostRecentEventCount] = useState<number>(0);
const [lastNativeText, setLastNativeText] = useState<
string | null | undefined
>(props.value);
>(null);
const [lastNativeSelectionState, setLastNativeSelection] = useState<{
selection?: Selection;
mostRecentEventCount: number;
Expand Down

0 comments on commit bdf1026

Please sign in to comment.