Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions MultiMultiSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ export class MultiMultiSlider extends React.Component {

//If both markers are disabled, the track is styled accordingly
const disabled = !this.props.enabledOne && !this.props.enabledTwo;
console.log("Prandip", positionOne);
if (positionOne > 0) {
console.log("tay k made another one");
}

return (
<View style={[styles.container, this.props.containerStyle]}>
Expand Down
3 changes: 2 additions & 1 deletion MultiSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { createArray, valueToPosition, positionToValue } from "./converters";

const ViewPropTypes = require("react-native").ViewPropTypes || View.propTypes;

export { MultiMultiSlider } from "./MultiMultiSlider";
export default class MultiSlider extends React.Component {
static propTypes = {
values: PropTypes.arrayOf(PropTypes.number),
Expand Down Expand Up @@ -347,7 +348,7 @@ export default class MultiSlider extends React.Component {
markerOffsetY,
} = this.props;
const twoMarkers = this.props.values.length == 2; // when allowOverlap, positionTwo could be 0, identified as string '0' and throwing 'RawText 0 needs to be wrapped in <Text>' error
console.log("bop");

const trackOneLength = positionOne;
const trackOneStyle = twoMarkers
? unselectedStyle
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ptomasroos/react-native-multi-slider",
"name": "@patrickcoca/react-native-multi-slider",
"version": "1.0.0",
"description": "Android and iOS supported pure JS slider component with multiple markers for React Native",
"main": "MultiSlider.js",
Expand Down