Nativebase: Deprecation Warning on React Native 44

Created on 4 May 2017  路  25Comments  路  Source: GeekyAnts/NativeBase

Warning: View.AccessibilityTraits has been deprecated and will be removed in a future version of ReactNative. Use ViewAccessibility.AccessibilityTraits instead.

Warning: View.AccessibilityComponentType has been deprecated and will be removed in a future version of ReactNative. Use ViewAccessibility.AccessibilityComponentTypes instead.

Warning: View.forceTouchAvailable has been deprecated and will be removed in a future version of ReactNative. Use NativeModules.PlatformConstants.forceTouchAvailable instead.

Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.

Here is what I import:

import { Container, Content, Footer, FooterTab } from 'native-base';

Latest NativeBase
React Native 44

Most helpful comment

@stefensuhat Native Base helps me a lot! Thank you for your hard work.

All 25 comments

+1

+1

+1

+1

+1

+1

+1

+1

just run react-native uninstall native-base. the warning gone

+1

+1

+1

+1

+1

+1

@zerokid's solution works: run react-native uninstall native-base

This issue should be closed

Sorry if I am being dense here, but how does uninstalling native-base constitute a solution? I would like to use native-base.

Any news if this will be fixed in future releases?

react-native uninstall native-base isn't a solution, I ran it and get following error:

rnpm-install WARN ERRINVALIDPROJ Project native-base is not a react-native library
Cannot find module '/Users/<project path>/node_modules/native-base/package.json'

We are trying to fix this ASAP.

@agersoncgps That's true, it's been unsolved. We are fixing this. You can continue using it and rely on us that this warning will be fixed in the next fix bump of NativeBase.

@zerokid @fhad-getmaple Thanks for putting our morale down. I still hope NativeBase helped you somewhere.

@stefensuhat Native Base helps me a lot! Thank you for your hard work.

Fixed with 2.1.4

I'm still getting this warning with version 2.1.4

I'm getting the same warning even with version 2.2.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omerdn1 picture omerdn1  路  3Comments

eggybot picture eggybot  路  3Comments

natashache picture natashache  路  3Comments

mcpracht picture mcpracht  路  3Comments

georgemickael-b picture georgemickael-b  路  3Comments