Commit 62c896a0 authored by Deni Rinaldi's avatar Deni Rinaldi

isuisu

parent 7a20de25
...@@ -112,6 +112,31 @@ class FilterScreen extends Component { ...@@ -112,6 +112,31 @@ class FilterScreen extends Component {
return true; return true;
}; };
resetFilter(){
this.setState({
lowPrice: 0,
highPrice: 2500000,
min: 0,
max: 0,
option1: false,
option2: false,
option3: false,
option4: false,
pickItemPria: "",
pickItemWanita: "",
pickItemAnak: "",
anak: false,
wanita: false,
pria: false,
dataCategory: [],
category: false,
categoryId: [],
categoryLabel: [],
})
this._rangeSlider.setLowValue(0)
this._rangeSlider.setHighValue(2500000)
}
render() { render() {
return ( return (
this.state.type == 'sorting' ? this.state.type == 'sorting' ?
...@@ -139,7 +164,7 @@ class FilterScreen extends Component { ...@@ -139,7 +164,7 @@ class FilterScreen extends Component {
</View> </View>
: :
<View style={{ flex: 1, backgroundColor: '#4cc9f0' }}> <View style={{ flex: 1, backgroundColor: '#4cc9f0' }}>
<BaseHeader leftText={'Filter'} filterText={'Reset Filter'} onBackPress={() => this.props.navigation.goBack()} filter={true} filterPress={() => null} /> <BaseHeader leftText={'Filter'} filterText={'Reset Filter'} onBackPress={() => this.props.navigation.goBack()} filter={true} filterPress={() => this.resetFilter()} />
<Modal <Modal
animationOut='slideOutDown' animationOut='slideOutDown'
// animationOutTiming={1000} // animationOutTiming={1000}
...@@ -172,7 +197,7 @@ class FilterScreen extends Component { ...@@ -172,7 +197,7 @@ class FilterScreen extends Component {
<BaseText type={"regular"} text={'Harga'} style={{ fontSize: 14, color: 'black', alignSelf: 'center', marginLeft: 10 }} /> <BaseText type={"regular"} text={'Harga'} style={{ fontSize: 14, color: 'black', alignSelf: 'center', marginLeft: 10 }} />
</View> </View>
<View style={{ justifyContent: 'center' }}> <View style={{ justifyContent: 'center' }}>
<Image source={Images.radioOff} style={{ height: 20, width: 20, alignSelf: 'center' }} /> <Image source={this.state.option1 || this.state.option2 || this.state.option3 || this.state.option4 ? Images.radioOn : Images.radioOff} style={{ height: 20, width: 20, alignSelf: 'center' }} />
</View> </View>
</View> </View>
...@@ -188,8 +213,8 @@ class FilterScreen extends Component { ...@@ -188,8 +213,8 @@ class FilterScreen extends Component {
style={{ width: '100%', height: 80, marginTop: -40 }} style={{ width: '100%', height: 80, marginTop: -40 }}
gravity={'center'} gravity={'center'}
min={0} min={0}
initialLowValue={this.state.lowPrice == 0 ? null :this.state.lowPrice} initialLowValue={this.state.lowPrice == 0 ? 0 :this.state.lowPrice}
initialHighValue={this.state.highPrice == 0 ? null : this.state.highPrice} initialHighValue={this.state.highPrice == 0 ? 2500000 : this.state.highPrice}
max={2500000} max={2500000}
step={20} step={20}
selectionColor="#91ffaf" selectionColor="#91ffaf"
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
3B788BE1481B4FC4950BBF76 /* rubicon-icon-font.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1274003C78914CD8B1FA5A66 /* rubicon-icon-font.ttf */; }; 3B788BE1481B4FC4950BBF76 /* rubicon-icon-font.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1274003C78914CD8B1FA5A66 /* rubicon-icon-font.ttf */; };
7B3629BE9BE7462C838FFBD1 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3C4CBC60B12F4024BB88117B /* SimpleLineIcons.ttf */; }; 7B3629BE9BE7462C838FFBD1 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3C4CBC60B12F4024BB88117B /* SimpleLineIcons.ttf */; };
7E8791994C19416784493D67 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 2A2C811268E6443E94231D04 /* Zocial.ttf */; }; 7E8791994C19416784493D67 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 2A2C811268E6443E94231D04 /* Zocial.ttf */; };
081FABC5EA834F2E9E91AD91 /* libRangeSlider.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CD366743CD8F4707A071A4AF /* libRangeSlider.a */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */ /* Begin PBXContainerItemProxy section */
...@@ -129,6 +130,8 @@ ...@@ -129,6 +130,8 @@
1274003C78914CD8B1FA5A66 /* rubicon-icon-font.ttf */ = {isa = PBXFileReference; name = "rubicon-icon-font.ttf"; path = "../node_modules/native-base/Fonts/rubicon-icon-font.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 1274003C78914CD8B1FA5A66 /* rubicon-icon-font.ttf */ = {isa = PBXFileReference; name = "rubicon-icon-font.ttf"; path = "../node_modules/native-base/Fonts/rubicon-icon-font.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
3C4CBC60B12F4024BB88117B /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/native-base/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 3C4CBC60B12F4024BB88117B /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/native-base/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
2A2C811268E6443E94231D04 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/native-base/Fonts/Zocial.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 2A2C811268E6443E94231D04 /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/native-base/Fonts/Zocial.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
56F316768CCC4BAD861A460E /* RangeSlider.xcodeproj */ = {isa = PBXFileReference; name = "RangeSlider.xcodeproj"; path = "../node_modules/react-native-range-slider/ios/RangeSlider.xcodeproj"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
CD366743CD8F4707A071A4AF /* libRangeSlider.a */ = {isa = PBXFileReference; name = "libRangeSlider.a"; path = "libRangeSlider.a"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
...@@ -143,6 +146,7 @@ ...@@ -143,6 +146,7 @@
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
081FABC5EA834F2E9E91AD91 /* libRangeSlider.a in Frameworks */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -206,6 +210,7 @@ ...@@ -206,6 +210,7 @@
832341AE1AAA6A7D00B99B32 /* Libraries */ = { 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
56F316768CCC4BAD861A460E /* RangeSlider.xcodeproj */,
); );
name = Libraries; name = Libraries;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -629,6 +634,14 @@ ...@@ -629,6 +634,14 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer.app/eCartProCustomer"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer.app/eCartProCustomer";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Debug; name = Debug;
}; };
...@@ -648,6 +661,14 @@ ...@@ -648,6 +661,14 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer.app/eCartProCustomer"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer.app/eCartProCustomer";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Release; name = Release;
}; };
...@@ -667,6 +688,10 @@ ...@@ -667,6 +688,10 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = eCartProCustomer; PRODUCT_NAME = eCartProCustomer;
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Debug; name = Debug;
}; };
...@@ -685,6 +710,10 @@ ...@@ -685,6 +710,10 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = eCartProCustomer; PRODUCT_NAME = eCartProCustomer;
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Release; name = Release;
}; };
...@@ -712,6 +741,14 @@ ...@@ -712,6 +741,14 @@
SDKROOT = appletvos; SDKROOT = appletvos;
TARGETED_DEVICE_FAMILY = 3; TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.2; TVOS_DEPLOYMENT_TARGET = 9.2;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Debug; name = Debug;
}; };
...@@ -739,6 +776,14 @@ ...@@ -739,6 +776,14 @@
SDKROOT = appletvos; SDKROOT = appletvos;
TARGETED_DEVICE_FAMILY = 3; TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 9.2; TVOS_DEPLOYMENT_TARGET = 9.2;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Release; name = Release;
}; };
...@@ -765,6 +810,14 @@ ...@@ -765,6 +810,14 @@
SDKROOT = appletvos; SDKROOT = appletvos;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer-tvOS.app/eCartProCustomer-tvOS"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer-tvOS.app/eCartProCustomer-tvOS";
TVOS_DEPLOYMENT_TARGET = 10.1; TVOS_DEPLOYMENT_TARGET = 10.1;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Debug; name = Debug;
}; };
...@@ -791,6 +844,14 @@ ...@@ -791,6 +844,14 @@
SDKROOT = appletvos; SDKROOT = appletvos;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer-tvOS.app/eCartProCustomer-tvOS"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/eCartProCustomer-tvOS.app/eCartProCustomer-tvOS";
TVOS_DEPLOYMENT_TARGET = 10.1; TVOS_DEPLOYMENT_TARGET = 10.1;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/..",
);
}; };
name = Release; name = Release;
}; };
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
"redux-persist": "^5.10.0", "redux-persist": "^5.10.0",
"redux-saga": "^1.1.3", "redux-saga": "^1.1.3",
"reduxsauce": "^1.1.1", "reduxsauce": "^1.1.1",
"rn-range-slider": "1.3.0", "rn-range-slider": "^1.3.2",
"rn-wave-bottom-bar": "^1.0.2", "rn-wave-bottom-bar": "^1.0.2",
"seamless-immutable": "^7.1.4" "seamless-immutable": "^7.1.4"
}, },
......
...@@ -12092,10 +12092,10 @@ rn-host-detect@1.2.0: ...@@ -12092,10 +12092,10 @@ rn-host-detect@1.2.0:
resolved "https://registry.yarnpkg.com/rn-host-detect/-/rn-host-detect-1.2.0.tgz#8b0396fc05631ec60c1cb8789e5070cdb04d0da0" resolved "https://registry.yarnpkg.com/rn-host-detect/-/rn-host-detect-1.2.0.tgz#8b0396fc05631ec60c1cb8789e5070cdb04d0da0"
integrity sha512-btNg5kzHcjZZ7t7mvvV/4wNJ9e3MPgrWivkRgWURzXL0JJ0pwWlU4zrbmdlz3HHzHOxhBhHB4D+/dbMFfu4/4A== integrity sha512-btNg5kzHcjZZ7t7mvvV/4wNJ9e3MPgrWivkRgWURzXL0JJ0pwWlU4zrbmdlz3HHzHOxhBhHB4D+/dbMFfu4/4A==
rn-range-slider@1.3.0: rn-range-slider@^1.3.2:
version "1.3.0" version "1.3.2"
resolved "https://registry.yarnpkg.com/rn-range-slider/-/rn-range-slider-1.3.0.tgz#8cebcb26645e8c6e6aff602a7d66ab75a687e75d" resolved "https://registry.yarnpkg.com/rn-range-slider/-/rn-range-slider-1.3.2.tgz#7c8618fc5ba302b20135908e5ab97c549eb759ab"
integrity sha512-iSrr/jX2igPg7RtU9EbAJ6xklgJ8C+jh58pwwtXqvrGHeO6HUj2QzOTMJDecW9Y6PFI07R9sKKH1oLnh7v7bxA== integrity sha512-1H8OmCgXDOhdDmOD4QylGd6iRk4Zqh6n0vB3Zcng8MHKm06JQIP+4fC4VdvDtYGCXPDzZvc/k1jbp2/64pznfw==
rn-wave-bottom-bar@^1.0.2: rn-wave-bottom-bar@^1.0.2:
version "1.0.2" version "1.0.2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment