Giter Club home page Giter Club logo

Comments (7)

douglasjunior avatar douglasjunior commented on June 9, 2024 2

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.

ldco2016 avatar ldco2016 commented on June 9, 2024 1

@douglasjunior , that's what I wanted to confirm. Thank you!

from react-native-keyboard-manager.

SrBrahma avatar SrBrahma commented on June 9, 2024 1

Thanks for the quick answer!

E que bom encontrar brasileiros autores de pacotes RN por aqui!

from react-native-keyboard-manager.

douglasjunior avatar douglasjunior commented on June 9, 2024

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.

ldco2016 avatar ldco2016 commented on June 9, 2024

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.jsand 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.

douglasjunior avatar douglasjunior commented on June 9, 2024

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.

SrBrahma avatar SrBrahma commented on June 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.