Nativebase: DatePicker warning message

Created on 10 Dec 2019  路  26Comments  路  Source: GeekyAnts/NativeBase

I have gone through these following points

Issue Description

React-native 0.61 started to use DateTimePicker from react-native-community, and both DatePickerAndroid / DatePickerIOS, witch are used by NativeBase DatePicker, were deprecated. It causes a warning message to be displayed everytime I use this component.

I would like to know if there are plans to update NativeBase to work with DateTimePicker from react-native-community or it there is a workaround this.

Thanks.

node, npm, react-native, react and native-base version, expo version if used, xcode version

node v10.16.2
yarn 1.19.2
react-native 0.61.4
react 16.9.0
native-base 2.13.8
expo 3.11.1

PR Added

Most helpful comment

This is something that i'm also getting an error message for too, i'm more than happy to open a PR if anyone wants it

All 26 comments

Same issue here. Any fix?

+1

+1

+1

+1

+1 , with nativebase 2.13.8

+1

+1 with nativebase 2.13.8

This is something that i'm also getting an error message for too, i'm more than happy to open a PR if anyone wants it

This is something that i'm also getting an error message for too, i'm more than happy to open a PR if anyone wants it

Yes please!

+1

+1

I switched to https://github.com/mmazzarolo/react-native-modal-datetime-picker fits perfectly to my needs

+1

Hi @Grantlyk , we will appreciate if you create PR for that. Thanks

PR with fix https://github.com/GeekyAnts/NativeBase/pull/3250
@hanykumar could you take a look?

Hi @alexandrtovmach , We will merge it soon. Thanks for this working PR.

@hanykumar Please merge asap. The old (current) version is broken on iOS 14.

@hanykumar can you please merge this? https://github.com/GeekyAnts/NativeBase/pull/3251

Ping

use this package, (yarn add https://github.com/tyhour/NativeBase.git) I just fixed some issue and all warning with Native Base. Also fixed error (this.requestAnimationFrame is not a function appears). I wish this can help you. :)

This issue should be closed, because issue fixed in v2.13.15+

Don't use it #3020 (comment), because #3250 already merged and released

==========
Hi sir new version has been release but why they not fixed another error with Tab of Native Base (TypeError: this.requestAnimationFrame is not a function. (In 'this.requestAnimationFrame(function () {
_this5.goToPage(_this5.state.currentPage);
})', 'this.requestAnimationFrame' is undefined)) ?

@tyhour

  1. It's separate issue, and not related to DatePicker updates
  2. Instead of recommending using your fork, better to create PR to original repo

@tyhour

  1. It's separate issue, and not related to DatePicker updates
  2. Instead of recommending using your fork, better to create PR to original repo

Ok thanks I think they will update soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

elnygren picture elnygren  路  3Comments

georgemickael-b picture georgemickael-b  路  3Comments

aloifolia picture aloifolia  路  3Comments

nschurmann picture nschurmann  路  3Comments

kitsune7 picture kitsune7  路  3Comments