VO
Size: a a a
VO
S
VO
S
MY
SectionList внутри react-native-interactable. Добавил useNativeDriver, на андроиде осталась проблема. Если открыть, то нельзя закрить пока не свайпну вниз. Не подскажите как исправить?ЮЗ
SectionList внутри react-native-interactable. Добавил useNativeDriver, на андроиде осталась проблема. Если открыть, то нельзя закрить пока не свайпну вниз. Не подскажите как исправить?
class NumberInput extends React.PureComponent {
  constructor(props) {
    super(props)
    bind(this)
    this.state = { text: "" }
  }
  onChange(text) {
    if (!text.match(/[^\d\.-]/) && text.match(/^-?\d*\.?\d*$/)) {
      this.setState({text})
    } else {
      this.ref.setNativeProps({value: this.state.text})
    }
  }
  render() {
    return (
      <TextInput
        placeholder="0"
        keyboardType="numeric"
        onChangeText={this.onChange}
        value={this.state.text}
        ref={(ref) => this.ref = ref}
      />
    )
  }
}VO
class NumberInput extends React.PureComponent {
  constructor(props) {
    super(props)
    bind(this)
    this.state = { text: "" }
  }
  onChange(text) {
    if (!text.match(/[^\d\.-]/) && text.match(/^-?\d*\.?\d*$/)) {
      this.setState({text})
    } else {
      this.ref.setNativeProps({value: this.state.text})
    }
  }
  render() {
    return (
      <TextInput
        placeholder="0"
        keyboardType="numeric"
        onChangeText={this.onChange}
        value={this.state.text}
        ref={(ref) => this.ref = ref}
      />
    )
  }
}this.state.text });
this.state.text });MY
ЮЗ
VO
MY
MY
ЮЗ
MD
class NumberInput extends Component {
  constructor(props) {
    super(props)
    bind(this)
    this.state = { text: "" }
  }
  onChange(text) {
    if (!text.match(/[^\d\.-]/) && text.match(/^-?\d*\.?\d*$/)) {
      this.setState({text})
    }
  }
  render() {
    return (
      <TextInput
        placeholder="0"
        keyboardType="numeric"
        onChangeText={this.onChange}
        value={this.state.text}
      />
    )
  }
}
ИЧ
MD