-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
import React from 'react'; | ||
import {View, Text} from 'react-native'; | ||
import {Text} from 'react-native'; | ||
import {GestureHandlerRootView} from 'react-native-gesture-handler' | ||
Check failure on line 3 in App.tsx GitHub Actions / Build
|
||
import BottomDrawer from './src/components/BottomDrawer'; | ||
import RadioButton from './src/components/RadioButton' | ||
Check failure on line 5 in App.tsx GitHub Actions / Build
|
||
|
||
const dataItem = [1,2,3,4,5,6,7,8,9,10,11,12,13,14] | ||
Check failure on line 7 in App.tsx GitHub Actions / Build
|
||
|
||
const renderItem = ({item,index}) => { | ||
return ( | ||
<RadioButton checkSize='md' checkPosition='left' key={index}> | ||
Check failure on line 11 in App.tsx GitHub Actions / Build
Check warning on line 11 in App.tsx GitHub Actions / Build
|
||
<Text>{item}</Text> | ||
</RadioButton> | ||
) | ||
Check failure on line 14 in App.tsx GitHub Actions / Build
|
||
} | ||
Check failure on line 15 in App.tsx GitHub Actions / Build
|
||
|
||
const App = () => ( | ||
<View> | ||
<Text>UI native</Text> | ||
</View> | ||
<GestureHandlerRootView style={{ flex: 1 }}> | ||
<BottomDrawer | ||
typeList='flatList' | ||
snapPoints={['25%', '50%','75%']} | ||
index={0} | ||
data={dataItem} | ||
renderItem={renderItem} | ||
children={null} | ||
containerStyle={{backgroundColor:'rgba(0,0,0,0.5)'}} | ||
/> | ||
</GestureHandlerRootView> | ||
); | ||
|
||
export default App; |
This file was deleted.
This file was deleted.