1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Refine accessibility

This commit is contained in:
Zhiyuan Zheng
2021-04-09 21:43:12 +02:00
parent 9258f4b934
commit d4b28df091
57 changed files with 661 additions and 142 deletions

View File

@ -1,8 +1,10 @@
import React, { createElement } from 'react'
import { StyleProp, View, ViewStyle } from 'react-native'
import { AccessibilityProps, StyleProp, View, ViewStyle } from 'react-native'
import * as FeatherIcon from 'react-native-feather'
export interface Props {
accessibilityLabel?: AccessibilityProps['accessibilityLabel']
name: string
size: number
color: string
@ -12,6 +14,7 @@ export interface Props {
}
const Icon: React.FC<Props> = ({
accessibilityLabel,
name,
size,
color,
@ -21,6 +24,7 @@ const Icon: React.FC<Props> = ({
}) => {
return (
<View
accessibilityLabel={accessibilityLabel}
style={[
style,
{