Skip to content

Adding a library as an external library without NPM #22589

Closed
@Gshock1

Description

@Gshock1

Hi all,

I have a question, hope someone will help me cause I'm starting to lose my mind here.
I have a library that I was imported it to my android solution just fine.
Now, I would like to add it to my iOS solution, but no success so far.

I've updated the headers path in the xCode, as well as, add the xcodeproj file to the libraries folder,
but I'm keep getting: "module not found" error in the runtime.

Any help?
Thanks.

index.js

import QuickActions from '../node_modules/react-native-quick-actions'

package.json:
{
  "name": "Guy",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "babel-preset-es2015": "^6.24.1",
    "entypo": "^2.0.0",
    "google-places": "0.0.2",
    "moment": "^2.19.1",
    "react": "16.0.0-beta.5",
    "react-native": "0.49.1",
    "react-native-display": "^1.0.8",
    "react-native-elements": "^0.17.0",
    "react-native-fbsdk": "^0.6.0",
    "react-native-firebase": "^3.1.0",
    "react-native-google-places-autocomplete": "^1.3.6",
    "react-native-localization": "^0.2.1",
    "react-native-maps": "^0.16.4",
    "react-native-modal": "^4.1.1",
    "react-native-quick-actions" : "0.3.7",
    "react-native-modal-datetime-picker": "^4.13.0",
    "react-native-modal-picker": "0.0.16",
    "react-native-modal-selector": "0.0.22",
    "react-native-ratings": "^4.1.0",
    "react-native-restart": "0.0.6",
    "react-native-slider": "^0.11.0",
    "react-native-snap-carousel": "^3.4.0",
    "react-native-vector-icons": "^4.4.0",
    "react-navigation": "^1.0.0-beta.13"
  },
  "devDependencies": {
    "babel-jest": "22.2.0",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.2.1",
    "react-test-renderer": "16.0.0-beta.5"
  },
  "jest": {
    "preset": "react-native",
    "transformIgnorePatterns": [
      "node_modules/(?!(.*-)?react-(.*-)?native(-.*)?)"
    ],
    "setupFiles": [
      "./jest-setup.js"
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: QuestionIssues that are actually questions and not bug reports.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions