From 1e76ba265325136e05f6c5fa6eb9329815199128 Mon Sep 17 00:00:00 2001 From: frits000000 <45283950+frits000000@users.noreply.github.com> Date: Fri, 27 Nov 2020 11:03:09 +0100 Subject: [PATCH] temp update --- ReactJS/Native/AlfaPrentice/App/Views/Home.js | 77 +++++++++++++++---- 1 file changed, 64 insertions(+), 13 deletions(-) diff --git a/ReactJS/Native/AlfaPrentice/App/Views/Home.js b/ReactJS/Native/AlfaPrentice/App/Views/Home.js index 9e48189..90472a1 100644 --- a/ReactJS/Native/AlfaPrentice/App/Views/Home.js +++ b/ReactJS/Native/AlfaPrentice/App/Views/Home.js @@ -1,18 +1,60 @@ //Modules import React from 'react' -import { TouchableOpacity, Text, StyleSheet } from 'react-native'; +import { TouchableOpacity, Text, StyleSheet, View, Dimensions } from 'react-native'; +import Swiper from 'react-native-swiper-hooks' //Components import { DefaultLayout, Hero, } from '../index'; +const windowWidth = Dimensions.get('window').width; + +const _renderList = ()=>{ + + let listData = [ + { + title:'Bedrijf 1', + }, + { + title:'Bedrijf 2', + }, + { + title:'Bedrijf 3', + }, + ] + return ( + listData.map((item,idx)=>{ + return ( + + + {item.title} + + + ) + }) + ) +} + + class Home extends React.Component { + render() { + const windowWidth = Dimensions.get('window').width; return ( - - Terug naar login - + Uitgeligte bedrijven + + + {_renderList()} + + ) } @@ -20,16 +62,25 @@ class Home extends React.Component { const styles = StyleSheet.create({ carousel: { - height: 200, - width: '100%', + height:250, + borderColor: "#DE0000", + borderWidth: 2, + borderStyle: 'solid', + width:windowWidth, + }, + CarouselText: { + color: "black" + }, + SecondaireHeader: { + color: "#003581", + textAlign: 'center', + fontSize: 20, + marginVertical: 15 + }, + carouselwrapper: { + padding: 15, + display: 'flex' }, - container: { - width: 375, - flex: 1, - justifyContent: 'center', - alignItems: 'center', - backgroundColor: 'transparent', - }, }); export default Home; \ No newline at end of file