You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {View, Text} from 'react-native' //DELETE
import {View, Text} from 'mimic-react-native' //ADD
Using Directly in react-dom
importReact,{useState}from'react'//Only these components are currently functioning. This library is still under development.import{View,Text,TextInput,ScrollView,Button,Switch,Flatlist}from'mimic-react-native'constExampleApp=()=>{const[checked,setChecked]=useState(false)return(<View><Textstyle={{color: 'red'}}>five</Text><TextInputonChangeText={()=>console.log(5)}/><ScrollView>5</ScrollView><Button>button</Button><SwitchonValueChange={()=>setChecked(!checked)}value={checked}/><FlatListkeyExtractor={(item)=>item.key}data={data}renderItem={({ item }: any)=><p>{item.name}</p>}/></View>)}exportdefaultApp
API:
<View>, <ScrollView>, <SafeAreaView>
These three are the same component exported in different names.