jordanbyron / react-native-quick-actions

A react-native interface for Touch 3D home screen quick actions
MIT License
1.06k stars 93 forks source link

Adding react-native-quick-actions as an external library #69

Closed Gshock1 closed 5 years ago

Gshock1 commented 5 years ago

Hi all,

Thanks for your attention. I would like to add this plugin without update all others libraries, so I manually added it to the node_modules folder. Also, I've updated all the necessary header files in xCode.

The thing is that in IOS, react native still says that it cannot find the module in node_modules library. Android works just fine.

Any help? Thanks.

index.js

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

package.json:
{
  "name": "spark",
  "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"
    ]
  }
}
jordanbyron commented 5 years ago

This is a question better suited for StackOverflow rather than our bug tracker, as it is not a defect in react-native-quick-actions. Best of luck! 🍡