mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
added placeholders for structural items required for coin details screen
This commit is contained in:
parent
16e4f94e06
commit
8ae3e622a1
10
src/screens/coinDetails/children/activityItem.tsx
Normal file
10
src/screens/coinDetails/children/activityItem.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
17
src/screens/coinDetails/children/children.styles.ts
Normal file
17
src/screens/coinDetails/children/children.styles.ts
Normal 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,
|
||||||
|
},
|
||||||
|
});
|
10
src/screens/coinDetails/children/coinBasics.tsx
Normal file
10
src/screens/coinDetails/children/coinBasics.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
10
src/screens/coinDetails/children/coinChart.tsx
Normal file
10
src/screens/coinDetails/children/coinChart.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
13
src/screens/coinDetails/children/coinSummary.tsx
Normal file
13
src/screens/coinDetails/children/coinSummary.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
5
src/screens/coinDetails/children/index.ts
Normal file
5
src/screens/coinDetails/children/index.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export * from './activityItem';
|
||||||
|
export * from './coinBasics';
|
||||||
|
export * from './coinChart';
|
||||||
|
export * from './rangeSelector';
|
||||||
|
export * from './coinSummary'
|
10
src/screens/coinDetails/children/rangeSelector.tsx
Normal file
10
src/screens/coinDetails/children/rangeSelector.tsx
Normal 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>
|
||||||
|
)
|
||||||
|
}
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
17
src/screens/coinDetails/screen/screen.styles.ts
Normal file
17
src/screens/coinDetails/screen/screen.styles.ts
Normal 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,
|
||||||
|
},
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user