added placeholders for structural items required for coin details screen

This commit is contained in:
Nouman Tahir 2022-02-14 18:02:48 +05:00
parent 16e4f94e06
commit 8ae3e622a1
9 changed files with 110 additions and 3 deletions

View File

@ -0,0 +1,10 @@
import React from 'react'
import { View, Text } from 'react-native'
export const ActivityItem = () => {
return (
<View>
<Text>Activity Item</Text>
</View>
)
}

View File

@ -0,0 +1,17 @@
import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
scrollContainer: {
padding: 0,
},
header: {
backgroundColor: '$primaryBackgroundColor',
},
dotStyle: {
backgroundColor: '$primaryDarkText',
},
listWrapper: {
backgroundColor: '$primaryBackgroundColor',
flex: 1,
},
});

View File

@ -0,0 +1,10 @@
import React from 'react'
import { View, Text } from 'react-native'
export const CoinBasics = () => {
return (
<View>
<Text>Coing basics goes here</Text>
</View>
)
}

View File

@ -0,0 +1,10 @@
import React from 'react'
import { View, Text } from 'react-native'
export const CoinChart = () => {
return (
<View>
<Text>Coin Chart goes here</Text>
</View>
)
}

View File

@ -0,0 +1,13 @@
import React from 'react'
import { View, Text } from 'react-native'
import { CoinBasics, CoinChart, RangeSelector } from '.'
export const CoinSummary = () => {
return (
<View>
<CoinBasics />
<CoinChart />
<RangeSelector />
</View>
)
}

View File

@ -0,0 +1,5 @@
export * from './activityItem';
export * from './coinBasics';
export * from './coinChart';
export * from './rangeSelector';
export * from './coinSummary'

View File

@ -0,0 +1,10 @@
import React from 'react'
import { View, Text } from 'react-native'
export const RangeSelector = () => {
return (
<View>
<Text>Range Selector</Text>
</View>
)
}

View File

@ -1,10 +1,25 @@
import { View, Text } from 'react-native' import { View } from 'react-native'
import React from 'react' import React from 'react'
import { BasicHeader } from '../../../components'
import { FlatList } from 'react-native-gesture-handler'
import { ActivityItem, CoinSummary } from '../children'
const CoinDetailsScreen = () => { const CoinDetailsScreen = () => {
const _renderActivityItem = ({item, index}) => {
return <ActivityItem />
}
return ( return (
<View> <View style={{flex:1}}>
<Text>coinDetailsScreen</Text> <BasicHeader title="Coin Details" />
<FlatList
style={{flex:1}}
data={["data"]}
renderItem={_renderActivityItem}
keyExtractor={(item, index)=>`activity_item_${index}`}
ListHeaderComponent={<CoinSummary/>}
/>
</View> </View>
) )
} }

View File

@ -0,0 +1,17 @@
import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({
scrollContainer: {
padding: 0,
},
header: {
backgroundColor: '$primaryBackgroundColor',
},
dotStyle: {
backgroundColor: '$primaryDarkText',
},
listWrapper: {
backgroundColor: '$primaryBackgroundColor',
flex: 1,
},
});