Comments (7)
I think this library works with Expo 44, but I cant confirm that.
I never particularly used it in a real project with Expo, and in Snack it still doesn't work.
from react-native-keyboard-manager.
@douglasjunior , that's what I wanted to confirm. Thank you!
from react-native-keyboard-manager.
Thanks for the quick answer!
E que bom encontrar brasileiros autores de pacotes RN por aqui!
from react-native-keyboard-manager.
This issue is related to the link of native modules and the new autolink.
In React Native 0.60.0 autolink has been added, where you no longer need to run react-native link
after installing the library.
Try to unlink React Native Keyboard Manager:
$ react-native unlink react-native-keyboard-manager
And let React Native autolink for you.
See this discussion: #51 (comment)
from react-native-keyboard-manager.
Hi @douglasjunior , the problem is not just unlinking it. The problem is that RN 60.4 no longer makes the distinction between index.ios.js
and index.android.js
, its all now index.js
and so both android
and ios
has access to that library and android
is complaining about it.
I have tested this by simply commenting out react-native-keyboard-manager
from my index.js
file:
/**
* @format
*/
import { AppRegistry } from "react-native";
// old config code
// import KeyboardManager from "react-native-keyboard-manager";
// old config code ^^^
import NFIBEngage from "./App";
import { name as appName } from "./app.json";
// old config code
import { Sentry } from "react-native-sentry";
Sentry.config(
"https://[email protected]/264268"
).install();
// KeyboardManager.setToolbarPreviousNextButtonEnable(true);
// old config code ^^^
AppRegistry.registerComponent("NFIBEngage", () => NFIBEngage);
When I do so the app boots up just fine in android
, but my ios
side still needs that react-native-keyboard-manager
so, where do we place KeyboardManager.setToolbarPreviousNextButtonEnable(true);
now that there no longer exists a index.ios.js
?
from react-native-keyboard-manager.
You cant use KeyboardManager
with any others platforms than iOS, so you need to do something like this:
import { Platform } from 'react-native';
import KeyboardManager from "react-native-keyboard-manager";
if (Platform.OS === 'ios') {
KeyboardManager.doSomething();
}
from react-native-keyboard-manager.
@douglasjunior i am having
App.js (647:882) null is not an object (evaluating '_reactNativeKeyboardManager.default.setEnable') (Device)
Evaluating module://App.js.js
Loading module://App.js
on the Expo Go Snack, on physical iOS, iPhone 8.
As it certainly works when installing on a actual project, I tried to use it on the Snack to try a little thing before choosing what lib to use on my project.
from react-native-keyboard-manager.
Related Issues (20)
- Cannot read property "setEnable(true)" of null HOT 11
- Showing Recent Issues error node_modules/react-native-keyboard-manager/index.js: Cannot find module 'babel-preset-react-native' HOT 6
- Pod install failed on m1 machine HOT 6
- large text input HOT 1
- Scrollview height gets larger and larger every time this library invokes itself HOT 1
- Autoscroll moves the input out of the screen
- [Question] KeyboardManager.resignFirstResponder() HOT 2
- Bug: keyboard extra animation HOT 4
- iOS build error: duplicate interface definition for class 'RCTBaseTextInputView' HOT 5
- iOS setKeyboardDistanceFromTextField is not working as expected HOT 1
- iOS Expo Demo error HOT 3
- Attempting to swipe back but not actually swiping back causes undesirable blank view while text input is focused HOT 10
- (Partially) Incompatible with `react-hook-form`? HOT 2
- Works incorrectly with two ScrollViews HOT 1
- IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap' not found HOT 9
- Is this package working with Expo SDK46? HOT 1
- Signing for "IQKeyboardManagerSwift-IQKeyboardManagerSwift" requires a development team. Select a development team in the Signing & Capabilities editor. HOT 2
- Is it working with Expo? HOT 2
- TS Error `PreviousNextView has no export member` HOT 1
- Cannot read property 'then' of undefined. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-keyboard-manager.