Skip to content

Commit

Permalink
Merge pull request #14 from CloudGakkai/development
Browse files Browse the repository at this point in the history
Release v1.0
  • Loading branch information
DeVoresyah authored Sep 14, 2020
2 parents 137f4cf + ec4706e commit 49d3a7a
Show file tree
Hide file tree
Showing 152 changed files with 7,658 additions and 3,865 deletions.
33 changes: 0 additions & 33 deletions App/Components/AlertMessage.js

This file was deleted.

23 changes: 0 additions & 23 deletions App/Components/AlertMessage.story.js

This file was deleted.

4 changes: 2 additions & 2 deletions App/Components/ArrowBack.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {useContext} from 'react'
import { View, TouchableOpacity } from 'react-native'
import Icon from "react-native-vector-icons/Feather"
import {NavigationContext} from "react-navigaton";
import {NavigationContext} from "react-navigation";

import { apply } from "../Lib/OsmiProvider";
import styles from './Styles/ArrowBackStyle'
Expand All @@ -12,7 +12,7 @@ const ArrowBack = (props) => {

return (
<TouchableOpacity activeOpacity={0.9} style={styles.container} onPress={() => navigation.goBack()}>
<Icon name="chevron-left" size={25} color={apply('gray-900')} />
<Icon name="chevron-left" size={35} color={apply('gray-900')} />
</TouchableOpacity>
)
}
Expand Down
14 changes: 14 additions & 0 deletions App/Components/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import { TouchableOpacity, Text } from 'react-native'

const Button = (props) => {
const { textStyle, text, ...restProps } = props

return (
<TouchableOpacity activeOpacity={0.9} {...restProps}>
<Text style={textStyle}>{text}</Text>
</TouchableOpacity>
)
}

export default Button
25 changes: 25 additions & 0 deletions App/Components/CardProduct.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React, { memo, useContext, useState } from 'react'
import { TouchableOpacity,Image, View, Text } from 'react-native'

import styles from './Styles/CardProduct'
import { NavigationContext } from "react-navigation"
import Format from '../Lib/NumberFormat'

const CardProduct = (props) => {
const [width, setWidth] = useState(0)
const [height, setHeight] = useState(0)
const {item, ...restProps} = props
const navigation = useContext(NavigationContext)

return (
<TouchableOpacity activeOpacity={0.9} style={styles.card} {...restProps}>
<Image source={{ uri: item?.thumbnail }} style={styles.thumb} resizeMode="cover" />
<View style={styles.content}>
<Text style={styles.price}>{'Rp' + new Format().formatMoney(item?.price ?? 0)}</Text>
<Text style={styles.title}>{item?.title}</Text>
</View>
</TouchableOpacity>
)
}

export default memo(CardProduct)
35 changes: 0 additions & 35 deletions App/Components/DrawerButton.js

This file was deleted.

15 changes: 0 additions & 15 deletions App/Components/DrawerButton.story.js

This file was deleted.

34 changes: 0 additions & 34 deletions App/Components/FullButton.js

This file was deleted.

17 changes: 0 additions & 17 deletions App/Components/FullButton.story.js

This file was deleted.

22 changes: 0 additions & 22 deletions App/Components/ListProduct.js

This file was deleted.

40 changes: 0 additions & 40 deletions App/Components/RoundedButton.js

This file was deleted.

16 changes: 0 additions & 16 deletions App/Components/RoundedButton.story.js

This file was deleted.

4 changes: 0 additions & 4 deletions App/Components/Stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
import './AlertMessage.story'
import './DrawerButton.story'
import './FullButton.story'
import './RoundedButton.story'
25 changes: 0 additions & 25 deletions App/Components/Styles/AlertMessageStyles.js

This file was deleted.

2 changes: 1 addition & 1 deletion App/Components/Styles/ArrowBackStyle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { connect } from "../../Lib/OsmiProvider"

export default connect({
container: 'px-5'
container: 'pl-3 pr-0'
})
7 changes: 7 additions & 0 deletions App/Components/Styles/ButtonStyle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { StyleSheet } from 'react-native'

export default StyleSheet.create({
container: {
flex: 1
}
})
11 changes: 11 additions & 0 deletions App/Components/Styles/CardProduct.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { connect } from "../../Lib/OsmiProvider"

export default connect({
card: "bg-white rounded-md shadow-sm flex items-start justify-center mx-0.5 my-0.5",
thumb: "rounded-t-md full h-150 self-center",
content: "flex flex-wrap p-2",
title: "text-base font-bold mb-1",
price: "text-sm my-1 text-blue-500 font-bold",
btnBuy: "bg-blue-500 self-center rounded-md px-3 py-1",
btnBuyLabel: "text-white font-bold text-center"
})
9 changes: 0 additions & 9 deletions App/Components/Styles/DrawerButtonStyles.js

This file was deleted.

20 changes: 0 additions & 20 deletions App/Components/Styles/FullButtonStyles.js

This file was deleted.

Loading

0 comments on commit 49d3a7a

Please sign in to comment.