Skip to content
Discussion options

You must be logged in to vote

Hello @consuelo-sanna,

The current way to manage focus is:

import { useRef } from 'react';
import { Button } from 'react-native';
import {
  BaseKeyboardView,
  type KeyboardFocus,
} from 'react-native-external-keyboard';

export const Example = () => {
  const ref = useRef<KeyboardFocus>(null);
  const action = () => {
    ref.current?.focus();
  };

  return (
    <BaseKeyboardView ref={ref}>
      <Button title="Target" />
    </BaseKeyboardView>
  );
};

You can use BaseKeyboardView or explore the features of KeyboardFocusView and withKeyboardFocus.

Unfortunately, focus control via the module KeyboardExtendedModule.setKeyboardFocus had some limitations and has been deprecated and remov…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ArturKalach
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #88 on August 09, 2025 18:06.