Skip to content
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

The package 'react-native-keyboard-controller' doesn't seem to be linked. #786

Open
sayan-avantai opened this issue Jan 29, 2025 · 10 comments
Assignees
Labels
question You wanted to clarify something about the usage of the library or have a question about something

Comments

@sayan-avantai
Copy link

Error:The package 'react-native-keyboard-controller' doesn't seem to be linked.

Warning: TypeError: Cannot read property 'KeyboardProvider' of undefined

package.json:
"react-native": "0.76.2",
"react-native-keyboard-controller": "^1.16.0",

 kotlinVersion = "1.9.24"

I have also changed kotlin version to "1.6.21". but same result. I am using bare react-native.

@kirillzyusko
Copy link
Owner

@sayan-avantai did you re-assemble the app after adding a library? Does it work on iOS?

@kirillzyusko kirillzyusko added the question You wanted to clarify something about the usage of the library or have a question about something label Jan 29, 2025
@aliminurudeen
Copy link

@sayan-avantai did you re-assemble the app after adding a library? Does it work on iOS?

Am having the same issue too, I have re-assemble the app many times, still not working. Am using Expo runtime

@kirillzyusko
Copy link
Owner

@aliminurudeen do you use expo go or expo dev client?

@jarosluv
Copy link

@sayan-avantai @aliminurudeen There are plenty of similar commands, try to run the following one: npx expo run:android --no-build-cache to rebuild a development version.

@sayan-avantai
Copy link
Author

sayan-avantai commented Feb 13, 2025

It's fixed now. I have deleted node modules folder then reinstall all npm packages. It's working now.

@sayan-avantai
Copy link
Author

@sayan-avantai @aliminurudeen There are plenty of similar commands, try to run the following one: npx expo run:android --no-build-cache to rebuild a development version.

I am using react-native-cli .

@NguyenQuocAnDev27
Copy link

i am using latest version React Native Expo having the same problem. So i need to uninstall this package.

@abedolinger
Copy link

what fixed it for me:

rm -rf ./node_modules
yarn # or `npm i`
rm -rf ios/Pods 
cd ios && pod install && cd ..
rm -rf ios/build/generated
# uninstall app from device
npx react-native run-ios

@kevnoutsawo
Copy link

I reinstalled the package using npx expo install react-native-keyboard-controller and it now works. Apparently the version npm installed was not the best fit for my project.

@dbeff
Copy link

dbeff commented Mar 6, 2025

Use npx react-native-clean-project to clean the cache in the project before installing the dependencies again. This package is also recommended in the react native https://reactnative.dev/docs/upgrading#troubleshooting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question You wanted to clarify something about the usage of the library or have a question about something
Projects
None yet
Development

No branches or pull requests

8 participants