<View
style={{
marginTop: 30,
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'space-between',
}} >
{categories.map((cat, idx) => (
<View
key={`categories ${idx}`}
style={{
width: '30%',
marginBottom: 20,
}} >
<TouchableHighlight
underlayColor={COLORS.secondary}
style={{
height: 100,
justifyContent: 'center',
borderRadius: SIZES.radius,
paddingLeft: 5,
paddingRight: 5,
backgroundColor: COLORS.gray,
}} >
import React from 'react'
import { View } from 'react-native'
import { COLORS } from './constants'
import Header from './src/components/Header'
import Popular from './src/components/Popular'
export default function App() {
return (
<View
style={{
Padding: 24,
paddingTop: 55,
paddingBottom: 75,
BackgroundColor: COLORS.black,
}}
>
<Header />
<Categories />
<Popul />
)
}