Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, {Component} from 'react';
- import {
- StyleSheet,
- Alert,
- Text,
- View,
- TextInput,
- TouchableOpacity,
- StatusBar,
- SafeAreaView,
- Image,
- ImageBackground,
- ScrollView,
- } from 'react-native';
- import {
- Container,
- Header,
- Button,
- Content,
- Form,
- Item,
- Input,
- Label,
- Right,
- Body,
- Left,
- Title,
- } from 'native-base';
- export default class Beranda extends Component {
- render() {
- return (
- <>
- <Header style={styles.header}>
- <Image
- style={styles.logo}
- source={require('../images/abangdesaputih.png')}></Image>
- <TouchableOpacity
- style={styles.BtnTKB}
- onpress={() => console.log('Ini Console Log')}>
- <Text style={styles.TKB}>
- TKB90 ={' '}
- <Text
- style={{
- fontFamily: 'OpenSans-Bold',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'left',
- }}>
- 99.25%
- </Text>
- </Text>
- </TouchableOpacity>
- </Header>
- <StatusBar backgroundColor="#015860" />
- <ScrollView style={{}}>
- <View style={styles.container}>
- <View
- style={{
- width: '89%',
- height: 130,
- backgroundColor: '#FCFCFC',
- marginTop: 16,
- marginLeft: 20,
- marginRight: 20,
- borderRadius: 8,
- opacity: 0.9,
- }}>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 16,
- paddingLeft: 20,
- paddingRight: 22,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#004147',
- fontSize: 15,
- }}>
- Saldo
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#7DAB40',
- fontSize: 15,
- textAlign: 'right',
- }}>
- Rp 100.000.000
- </Text>
- </View>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 16,
- marginRight: 16,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flex: 1,
- flexDirection: 'row',
- marginHorizontal: 26,
- }}>
- <View
- style={{
- marginTop: 14,
- }}>
- <TouchableOpacity>
- <Image
- style={{width: '84%', height: 37}}
- source={require('../images/TopUp5.png')}></Image>
- <Text
- style={{
- fontFamily: 'OpenSans-Bold',
- fontSize: 10,
- color: '#004147',
- paddingRight: 5,
- }}>
- Top Up
- </Text>
- </TouchableOpacity>
- </View>
- <View
- style={{
- marginTop: 14,
- marginLeft: 68,
- }}>
- <TouchableOpacity>
- <Image
- style={{width: '84%', height: 37}}
- source={require('../images/Depositdongker3.png')}></Image>
- <Text
- style={{
- fontFamily: 'OpenSans-Bold',
- fontSize: 10,
- color: '#004147',
- paddingRight: 4,
- }}>
- Deposit
- </Text>
- </TouchableOpacity>
- </View>
- <View
- style={{
- marginTop: 14,
- marginLeft: 68,
- }}>
- <TouchableOpacity>
- <Image
- style={{width: '83%', height: 37}}
- source={require('../images/Penarikan.png')}></Image>
- <Text
- style={{
- fontFamily: 'OpenSans-Bold',
- fontSize: 10,
- color: '#004147',
- paddingRight: 4,
- }}>
- Penarikan
- </Text>
- </TouchableOpacity>
- </View>
- </View>
- </View>
- <View
- style={{
- width: '89%',
- height: 240,
- backgroundColor: '#FCFCFC',
- marginTop: 10,
- marginLeft: 20,
- marginRight: 20,
- borderRadius: 8,
- opacity: 0.9,
- }}>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 16,
- paddingLeft: 20,
- paddingRight: 22,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#004147',
- fontSize: 15,
- }}>
- Total Pendanaan
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#7DAB40',
- fontSize: 15,
- textAlign: 'right',
- }}>
- Rp 100.000.000
- </Text>
- </View>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 16,
- marginRight: 16,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 16,
- paddingLeft: 20,
- paddingRight: 22,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#004147',
- fontSize: 15,
- }}>
- Total Penarikan
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#7DAB40',
- fontSize: 15,
- textAlign: 'right',
- }}>
- Rp 100.000.000
- </Text>
- </View>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 16,
- marginRight: 16,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 16,
- paddingLeft: 20,
- paddingRight: 22,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#004147',
- fontSize: 15,
- }}>
- Total Investasi Referal
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#7DAB40',
- fontSize: 15,
- textAlign: 'right',
- }}>
- Rp 100.000.000
- </Text>
- </View>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 16,
- marginRight: 16,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 16,
- paddingLeft: 20,
- paddingRight: 22,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#004147',
- fontSize: 15,
- }}>
- Total Bonus Referal
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#7DAB40',
- fontSize: 15,
- textAlign: 'right',
- }}>
- Rp 100.000.000
- </Text>
- </View>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 16,
- marginRight: 16,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 16,
- paddingLeft: 20,
- paddingRight: 22,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#004147',
- fontSize: 15,
- }}>
- Total Referal
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- color: '#7DAB40',
- fontSize: 15,
- textAlign: 'right',
- }}>
- Rp 100.000.000
- </Text>
- </View>
- </View>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 16,
- color: '#004147',
- marginLeft: 20,
- marginTop: 17,
- }}>
- Pendanaan
- </Text>
- <View style={{flexDirection: 'row'}}>
- <TouchableOpacity>
- <Image
- style={{
- width: 90,
- height: 80,
- borderRadius: 6,
- marginLeft: 20,
- marginTop: 8,
- }}
- source={require('../images/abangtani.png')}></Image>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- textAlign: 'center',
- color: '#004147',
- marginLeft: 16,
- fontSize: 12,
- }}>
- Abang Tani
- </Text>
- </TouchableOpacity>
- <TouchableOpacity>
- <Image
- style={{
- width: 90,
- height: 80,
- borderRadius: 6,
- marginLeft: 25,
- marginTop: 8,
- }}
- source={require('../images/abangternak.png')}></Image>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- textAlign: 'center',
- color: '#004147',
- marginLeft: 28,
- fontSize: 12,
- }}>
- Abang Ternak
- </Text>
- </TouchableOpacity>
- <TouchableOpacity>
- <Image
- style={{
- width: 90,
- height: 80,
- borderRadius: 6,
- marginLeft: 25,
- marginTop: 8,
- }}
- source={require('../images/abangbisnis.png')}></Image>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- textAlign: 'center',
- color: '#004147',
- marginLeft: 36,
- marginRight: 20,
- fontSize: 12,
- }}>
- Abang Bisnis
- </Text>
- </TouchableOpacity>
- </View>
- <View style={{flexDirection: 'row'}}>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 16,
- color: '#004147',
- marginLeft: 20,
- marginTop: 17,
- }}>
- Proyek Pendanaan Baru
- </Text>
- <TouchableOpacity
- style={{marginTop: 20, marginRight: 20, marginLeft: 50}}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- fontSize: 12,
- color: '#004147',
- }}>
- Selengkapnya >
- </Text>
- </TouchableOpacity>
- </View>
- <ScrollView
- horizontal={true}
- showsHorizontalScrollIndicator={false}>
- <TouchableOpacity
- style={{
- width: 200,
- height: 280,
- backgroundColor: '#FCFCFC',
- borderRadius: 4,
- marginLeft: 20,
- marginTop: 8,
- marginBottom: 30,
- }}>
- <View>
- <ImageBackground
- style={{
- width: 188,
- height: 120,
- borderRadius: 2,
- marginLeft: 6,
- paddingRight: 6,
- marginTop: 8,
- justifyContent: 'flex-end',
- }}
- source={require('../images/wirefamee.png')}>
- <View // ribbon
- style={{
- width: 58,
- height: 20,
- marginLeft: 0,
- marginTop: 4,
- backgroundColor: '#7DAB40',
- borderTopRightRadius: 3,
- borderBottomRightRadius: 3,
- }}>
- <Text
- style={{
- color: '#FFF',
- fontFamily: 'OpenSans-Regular',
- fontSize: 8,
- textAlign: 'left',
- paddingRight: 8,
- paddingLeft: 8,
- paddingTop: 4,
- paddingBottom: 4,
- }}>
- Bagi Hasil
- </Text>
- </View>
- </ImageBackground>
- </View>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 6,
- textAlign: 'left',
- }}>
- Buah Naga Sambas
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 1,
- textAlign: 'left',
- }}>
- ID. 56326565899489
- </Text>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 6,
- marginRight: 6,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kebutuhan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kekurangan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- textAlign: 'center',
- color: '#004147',
- fontSize: 10,
- marginTop: 14,
- }}>
- 0% didanai
- </Text>
- </View>
- <View
- style={{
- width: 168,
- height: 8,
- backgroundColor: '#DBDBDB',
- borderRadius: 8,
- marginLeft: 15,
- marginRight: 15,
- marginTop: 2,
- }}></View>
- </TouchableOpacity>
- <TouchableOpacity
- style={{
- width: 200,
- height: 280,
- backgroundColor: '#FCFCFC',
- borderRadius: 4,
- marginLeft: 20,
- marginTop: 8,
- marginBottom: 30,
- }}>
- <View>
- <ImageBackground
- style={{
- width: 188,
- height: 120,
- borderRadius: 2,
- marginLeft: 6,
- paddingRight: 6,
- marginTop: 8,
- justifyContent: 'flex-end',
- }}
- source={require('../images/sapi.jpg')}>
- <View // ribbon
- style={{
- width: 58,
- height: 20,
- marginLeft: 0,
- marginTop: 4,
- backgroundColor: '#7DAB40',
- borderTopRightRadius: 3,
- borderBottomRightRadius: 3,
- }}>
- <Text
- style={{
- color: '#FFF',
- fontFamily: 'OpenSans-Regular',
- fontSize: 8,
- textAlign: 'left',
- paddingRight: 8,
- paddingLeft: 8,
- paddingTop: 4,
- paddingBottom: 4,
- }}>
- Bagi Hasil
- </Text>
- </View>
- </ImageBackground>
- </View>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 6,
- textAlign: 'left',
- }}>
- Sapi Madura
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 1,
- textAlign: 'left',
- }}>
- ID. 56326565899489
- </Text>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 6,
- marginRight: 6,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kebutuhan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kekurangan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- textAlign: 'center',
- color: '#004147',
- fontSize: 10,
- marginTop: 14,
- }}>
- 0% didanai
- </Text>
- </View>
- <View
- style={{
- width: 168,
- height: 8,
- backgroundColor: '#DBDBDB',
- borderRadius: 8,
- marginLeft: 15,
- marginRight: 15,
- marginTop: 2,
- }}></View>
- </TouchableOpacity>
- <TouchableOpacity
- style={{
- width: 200,
- height: 280,
- backgroundColor: '#FCFCFC',
- borderRadius: 4,
- marginLeft: 14,
- marginTop: 8,
- marginBottom: 30,
- }}>
- <ImageBackground
- style={{
- width: 188,
- height: 120,
- borderRadius: 2,
- marginLeft: 6,
- paddingRight: 6,
- marginTop: 8,
- justifyContent: 'flex-end',
- }}
- source={require('../images/kebunlada.jpg')}>
- <View // ribbon
- style={{
- width: 100,
- height: 20,
- marginLeft: 0,
- marginTop: 4,
- backgroundColor: '#7DAB40',
- borderTopRightRadius: 3,
- borderBottomRightRadius: 3,
- }}>
- <Text
- style={{
- color: '#FFF',
- fontFamily: 'OpenSans-Regular',
- fontSize: 8,
- textAlign: 'left',
- paddingRight: 8,
- paddingLeft: 8,
- paddingTop: 4,
- paddingBottom: 4,
- }}>
- Skema Pendanaan 1
- </Text>
- </View>
- </ImageBackground>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 6,
- textAlign: 'left',
- }}>
- Lada Hitam
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 1,
- textAlign: 'left',
- }}>
- ID. 56326565899489
- </Text>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 6,
- marginRight: 6,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kebutuhan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kekurangan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- textAlign: 'center',
- color: '#004147',
- fontSize: 10,
- marginTop: 14,
- }}>
- 0% didanai
- </Text>
- </View>
- <View
- style={{
- width: 168,
- height: 8,
- backgroundColor: '#DBDBDB',
- borderRadius: 8,
- marginLeft: 15,
- marginRight: 15,
- marginTop: 2,
- }}></View>
- </TouchableOpacity>
- <TouchableOpacity
- style={{
- width: 200,
- height: 280,
- backgroundColor: '#FCFCFC',
- borderRadius: 4,
- marginLeft: 14,
- marginRight: 20,
- marginTop: 8,
- marginBottom: 0,
- }}>
- <ImageBackground
- style={{
- width: 188,
- height: 120,
- borderRadius: 2,
- marginLeft: 6,
- paddingRight: 6,
- marginTop: 8,
- justifyContent: 'flex-end',
- }}
- source={require('../images/kambing.jpg')}>
- <View // ribbon
- style={{
- width: 58,
- height: 20,
- marginLeft: 0,
- marginTop: 4,
- backgroundColor: '#7DAB40',
- borderTopRightRadius: 3,
- borderBottomRightRadius: 3,
- }}>
- <Text
- style={{
- color: '#FFF',
- fontFamily: 'OpenSans-Regular',
- fontSize: 8,
- textAlign: 'left',
- paddingRight: 8,
- paddingLeft: 8,
- paddingTop: 4,
- paddingBottom: 4,
- }}>
- Bagi Hasil
- </Text>
- </View>
- </ImageBackground>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 6,
- textAlign: 'left',
- }}>
- Kambing Madura
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Regular',
- fontSize: 12,
- color: '#004147',
- marginLeft: 8,
- marginTop: 1,
- textAlign: 'left',
- }}>
- ID. 56326565899489
- </Text>
- <View
- style={{
- borderWidth: 0.3,
- borderColor: '#707070',
- opacity: 0.2,
- marginLeft: 6,
- marginRight: 6,
- marginTop: 10,
- }}></View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kebutuhan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View
- style={{
- flexDirection: 'row',
- paddingTop: 7,
- paddingLeft: 8,
- paddingRight: 8,
- justifyContent: 'space-between',
- }}>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#004147',
- fontSize: 12,
- }}>
- Kekurangan Dana
- </Text>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- color: '#7DAB40',
- fontSize: 12,
- textAlign: 'right',
- }}>
- Rp 1.000.000
- </Text>
- </View>
- <View>
- <Text
- style={{
- fontFamily: 'OpenSans-Light',
- textAlign: 'center',
- color: '#004147',
- fontSize: 10,
- marginTop: 14,
- }}>
- 0% didanai
- </Text>
- </View>
- <View
- style={{
- width: 168,
- height: 8,
- backgroundColor: '#DBDBDB',
- borderRadius: 8,
- marginLeft: 15,
- marginRight: 15,
- marginTop: 2,
- }}></View>
- </TouchableOpacity>
- </ScrollView>
- </View>
- </ScrollView>
- </>
- );
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: '#E9E9E9',
- },
- header: {
- backgroundColor: '#015860',
- justifyContent: 'flex-start',
- paddingTop: 16,
- paddingBottom: 16,
- paddingLeft: 20,
- },
- logo: {
- width: '44%',
- height: 22,
- },
- BtnTKB: {
- paddingHorizontal: 62,
- },
- TKB: {
- fontFamily: 'OpenSans-Bold',
- backgroundColor: '#FCFCFC',
- fontSize: 11,
- color: '#C1C1C1',
- width: 108,
- height: 26,
- borderRadius: 14,
- paddingTop: 4,
- paddingBottom: 8,
- paddingLeft: 10,
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement