0
私は自分のプロジェクト内でreact-native-material-calandarviewをダウンロードしました。選択した日付を取得するには?反応カレンダーで
彼らはちょうどカレンダーを取得するコードを与えます。 https://github.com/NuclleaR/react-native-material-calendarview。
私はそれを私のrender()の内部で使用しました。 selectedDates = {this.state.dates} ...... {this.state.dates}は未定義です。 私は選択した日付の配列が必要ですが、私はそれを取得できません。 私は選択された日付を取得しますか? 事前
おかげで、 onDateChange = {データ=>を{ this.state.selected_date = data.date; }} しかし、私はこのように使用しました。 今私の疑問は、もし私がdatesSelection = {'range'}を選択した場合、選択された日付 –