remove android

This commit is contained in:
Hailey
2024-01-18 21:31:38 -08:00
parent 9e197934ba
commit e335f5ab7f
8 changed files with 8 additions and 146 deletions
@@ -1,5 +1,5 @@
import React from 'react'
import {StyleSheet, TextProps, ViewStyle} from 'react-native'
import {Platform, StyleSheet, TextProps, ViewStyle} from 'react-native'
import {RNUITextView, RNUITextViewChild} from './index'
const TextAncestorContext = React.createContext<[boolean, ViewStyle]>([
@@ -22,6 +22,10 @@ export function UITextView({style, children, ...rest}: TextProps) {
[rootStyle, style],
)
if (Platform.OS !== 'ios') {
throw new Error('UITextView is only available on iOS')
}
if (!isAncestor) {
return (
<TextAncestorContext.Provider value={[true, flattenedStyle]}>