react-native-checkboxlist icon indicating copy to clipboard operation
react-native-checkboxlist copied to clipboard

Super expression must either be null or a function, not undefined

Open priyankagupta23pg opened this issue 6 years ago • 7 comments

Getting this error Super expression must either be null or a function, not undefined while using this library

priyankagupta23pg avatar Jun 18 '18 06:06 priyankagupta23pg

+1

zaoqishibing avatar Dec 26 '18 17:12 zaoqishibing

+1

lhd951220 avatar Jan 05 '19 01:01 lhd951220

+1

wywzixin avatar Jan 15 '19 04:01 wywzixin

index.js at the head replace:import React, { Component } from 'react'; //import React from 'react-native'; import { Text, TouchableOpacity, View, Image, ListView, } from 'react-native'; import PropTypes from 'prop-types'; import BaseComponent from './BaseComponent' import Styles from './styles'

const propTypes = { options: PropTypes.array.isRequired, selectedOptions: PropTypes.array, maxSelectedOptions: PropTypes.number, onSelection: PropTypes.func, renderIndicator: PropTypes.func, renderSeparator: PropTypes.func, renderRow: PropTypes.func, renderText: PropTypes.func, //style: View.propTypes.style, //optionStyle: View.propTypes.style, disabled: PropTypes.bool };

wm0425 avatar Jul 02 '19 01:07 wm0425

Basecomment.js: import React, { Component } from 'react'; //import React from 'react-native';

export default class BaseComponent extends Component { _bind(...methods) { methods.forEach( (method) => this[method] = this[method].bind(this) ); } }

wm0425 avatar Jul 02 '19 01:07 wm0425

Now it can use!

wm0425 avatar Jul 02 '19 01:07 wm0425

+1

NRD90M avatar Sep 05 '19 02:09 NRD90M