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
+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
Most helpful comment
@stefensuhat Native Base helps me a lot! Thank you for your hard work.