Giter Club home page Giter Club logo

Comments (7)

krishbhattacharyya avatar krishbhattacharyya commented on June 29, 2024

Hi @Dzheky , I have face the problem today & solve this but the build was mine. It can help you but I am not sure. If "react-native-device-info" is installed in your packages please uninstall this & remove the added portion as mentioned in the link "MainActivity.java & AndroidManifest.xml". Please go through the link - https://github.com/rebeccahughes/react-native-device-info. You will get the idea. And one very important thing is that- if "import com.learnium.RNDeviceInfo.RNDeviceInfo;" & "new RNDeviceInfo()" is added multiple times it can create this problem.

from react-native-device-info.

Dzheky avatar Dzheky commented on June 29, 2024

@krishbhattacharyya thank you, I removed packages, and removed everything that react-native-device-info has added to the project including MainActivity.java and AdnroidManifest.xml entries. After all of this build is working, but when I install it again if shows me the same error. So seems like I am not able to use it.

from react-native-device-info.

krishbhattacharyya avatar krishbhattacharyya commented on June 29, 2024

Can you share the screen shot of the simulator & the npm error? Then I can try to help you or may be other person can help you.

from react-native-device-info.

Dzheky avatar Dzheky commented on June 29, 2024

I get this if I dont do react-native link react-native-device-info
2

And this if I do react-native link react-native-device-info, so the build faild, so there is nothing to show here really.
1

from react-native-device-info.

krishbhattacharyya avatar krishbhattacharyya commented on June 29, 2024

You have told me that you have uninstalled the "react-native-device-info" but you have import this in your package. So please remove this from package may be this will run. One thing but you are going to remove the device info which is major part of your app.

Please have a look in this is already a open bug-
#52 (comment)

from react-native-device-info.

Dzheky avatar Dzheky commented on June 29, 2024

Like I said if I completely remove 'react-native-device-info' my application works, but obviously I cannot use 'react-native-device-info' then because I removed it.

from react-native-device-info.

krishbhattacharyya avatar krishbhattacharyya commented on June 29, 2024

Then you should close this issue. This is temporary solution to remove the device info. Developers are working on device info.
#52 (comment) So as per my knowledge this is a known issue. Thanks.

from react-native-device-info.

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.