KeyboardFocusView #63
-
Not working code snippet:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @henry12jack, Sorry for the inconvenience. I will check what the problem could be and try to provide a solution. Unfortunately, it takes a lot of time and resources to improve and test the packages properly, and I have only a limited amount of time to keep them stable. Thank you for understanding. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @henry12jack, I hope I have found the problem and the main difference between react-native-external-keyboard and react-native-a11y regarding keyboard focus. But could you specify the platform and provide an example of the code you have inside the 'children'? It seems that the problem is RN/Native-based, and previously, it worked with an additional container using the accessibility prop. It works fine with interactive components like Pressable and Button, but I found that there could be some problems with, for example, Text. Could you try adding accessibility to KeyboardFocusView? I am going to create a patch for this, but it would be really helpful if you could let me know whether this helps. import {View} from "react-native";
import {KeyboardFocusView} from "react-native-external-keyboard";
type DisableKeyboardFocusViewProps = {
shouldBeDisabledFocus: boolean;
children?: React.ReactNode;
};
export const DisableKeyboardFocusView = ({
shouldBeDisabledFocus,
children,
}: DisableKeyboardFocusViewProps) => {
return (
<KeyboardFocusView accessible focusable={!shouldBeDisabledFocus}> // add accessible here
<View accessible aria-hidden={shouldBeDisabledFocus}>{children}</View> // or even here
</KeyboardFocusView>
);
}; I can also share that Thank you in advance, |
Beta Was this translation helpful? Give feedback.
Hello @henry12jack,
Sorry for the wait. Unfortunately, I can only do this in my leisure time, which is really limited.
I hope I have found the problem and the main difference between react-native-external-keyboard and react-native-a11y regarding keyboard focus. But could you specify the platform and provide an example of the code you have inside the 'children'?
It seems that the problem is RN/Native-based, and previously, it worked with an additional container using the accessibility prop. It works fine with interactive components like Pressable and Button, but I found that there could be some problems with, for example, Text.
Could you try adding accessibility to KeyboardFocusView? I am …