-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invariant Violation: requireNativeComponent: "RNDateTimePicker" was not found in the UIManager #12
Comments
This package does not work with React Native .60 |
Seems sort of buggy but going into
|
Thank your for reporting. I'm currently working on doing a full update to support That said I did notice the reference to
I don't think expo by default supports native modules other than a set of modules from React Native itself and a selection of handpicked native API's. But please correct me if I'm wrong. |
@Swaagie is there anything different we need to do on version 2.0.0 to work with RN 60? https://github.com/react-native-community/react-native-datetimepicker#manual-installation |
This combination is also not working:
Same error as the original poster when building/running on iOS |
@mrcl3an Did you try doing |
I am using expo 34.0.1 and I have encountered this problem.
Have tried, still have problems |
I have the same problem, are there any solutions? |
expo 35.0.0 (bare workflow) - the same issue |
I might be mistaken, but if you are using a managed expo workflow it seems this package will not work because expo does not support native modules and this package is a native module |
@Nnoerregaard I am using the bare workflow which supports native modules https://docs.expo.io. So the issue is with something else :( |
I'm still getting the same error, but only on ios and not on android. |
I've this: Invariant Violation: Invariant Violation: requireNativeComponent: "DatePickerManager" was not found in the UIManager.
|
Any solutions for this? React Native: |
Adding "react-native": "0.61.2", |
Yeah, adding |
Same error, on React-native 0.60.5. Only in iOS. The podfile hotfix does't works here. |
Using react-native link and installing pods fixed this issue for me, on RN 0.60.3. Not sure why this section was removed from readme.
|
React Native: 0.61.2
*no need to link works for me |
Doesn't work |
Strangely, this DOES work for me on RN 0.61.2 both iOS and Android work. I did nothing to manually install it. I did not edit Main.java, I did not change any gradle settings, I did not add anything to pod file. |
Then only install with npm? Because this is not possible, in the documentation say's add in podfile, install pod, add in gradle... I don't understand |
Yeah, just let autolinking take care of you I suppose. |
Was anyone able to get this to work? I'm building an NPM Package and it works when running in the iOS simulator, but when I install the package through npm and import the component, the error occurs when I click on the picker. My component renders, but it throws the error as soon as I click on it to bring up the picker. Not sure if it is a podfile issue, linking issue, or something else I'm missing. I'm on react-native 0.61.5, but I'm importing the RNDatepicker in the podfile. Invariant Violation: View config not found for name RNDateTimePicker Then this weird thing where I get a different error if I add Invariant Violation: requireComponent: "RNDateTimePicker" was not found in the UIManager" My podfile # Allowed sources
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'reactNativeUltimateModalPicker' do
# As we use Swift, ensure that `use_frameworks` is enabled.
use_frameworks!
# React Native Datetime List Picker
pod 'RNDateTimePicker', :path => '../node_modules/@react-native-community/datetimepicker/RNDateTimePicker.podspec'
# # React Native Vector Icons
# pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
# Pods for reactNativeUltimateModalPicker
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
target 'reactNativeUltimateModalPickerTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'reactNativeUltimateModalPicker-tvOS' do
# Pods for reactNativeUltimateModalPicker-tvOS
target 'reactNativeUltimateModalPicker-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end |
ANY SOLUTION?? |
Mine now works fine after I updated my Expo SDK to 36.0.0. |
I'm closing this because
@usman1579 please open a new issue with a runnable reproduction if the problem persists. Thanks. |
Bug
The component appears to not be working. Once my app reaches the screen where the component is called it crashes.
Library version: 1.0.0
Steps To Reproduce
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: