mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 06:48:35 +00:00
[add] More role to component mappings
This commit is contained in:
+8
-1
@@ -12,15 +12,22 @@ import propsToAriaRole from './propsToAriaRole';
|
||||
const roleComponents = {
|
||||
article: 'article',
|
||||
banner: 'header',
|
||||
blockquote: 'blockquote',
|
||||
code: 'code',
|
||||
complementary: 'aside',
|
||||
contentinfo: 'footer',
|
||||
deletion: 'del',
|
||||
emphasis: 'em',
|
||||
figure: 'figure',
|
||||
insertion: 'ins',
|
||||
form: 'form',
|
||||
link: 'a',
|
||||
list: 'ul',
|
||||
listitem: 'li',
|
||||
main: 'main',
|
||||
navigation: 'nav',
|
||||
region: 'section'
|
||||
region: 'section',
|
||||
strong: 'strong'
|
||||
};
|
||||
|
||||
const emptyObject = {};
|
||||
|
||||
Reference in New Issue
Block a user