Skip to content

undefined is not an object (evaluating 'PropTypes.bool') #57

@elbuenrobin

Description

@elbuenrobin

Hi
I have this code but I recibe this error "undefined is not an object (evaluating 'PropTypes.bool')"

import React, { Component } from 'react';
Import Slider from 'react-native-multi-slider';
render (){
    const
      {
        distanceRange,
      } = this.state;
return(){
 <Slider
          style={{ marginLeft: 15, marginRight: 15 }}
          min={2}
          max={120}
          step={1}
          values={distanceRange}
          onValuesChange={val => this.setState({ distanceRange: val })}
        />
}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions