Open cpcrowley opened 6 years ago
same Issue . I have install lib using YARN and link as well but getting undefined "react-native-in-app-utils": "^6.0.0", "react-native": "0.55.0", "react": "^16.3.0-alpha.1", @chirag04
I have same issue. I use RN 0.54.0. I solved by manual-linking. https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
I would recommend manual linking. Happy to accept a PR that fixes linking via rnmp
I have found Solution
Reference Stack overflow answer
Install Library (react-native-in-app-utils) using rnpm. you need to install rnpm.
rnpm
install react-native-in-app-utilsrnpm will auto link your library for IOS.
just run : 1- react-native install react-native-in-app-utils 2- react-native link react-native-in-app-utils (if dont linked automatically) 3- in ios/ run 'pod install'
work to me π
I am upgrading my app from 0.48 to 0.55 by reconstructing a new app. I ran:"react-native install react-native-in-app-utils" and it completed successfully. See terminal output below.
I have in my app: import { NativeModules } from 'react-native'; const { InAppUtils } = NativeModules;
When I run it InAppUtils is undefined and NativeModules is empty. It was working on the 048 version. Is there something else I need to do to get it to work in 0.55?
riMac: react-native install react-native-in-app-utils Scanning folders for symlinks in /Users/cpcrowley/a/slp/st55/node_modules (26ms) yarn add v0.19.1 [1/4] π Resolving packages... [2/4] π Fetching packages... [3/4] π Linking dependencies... warning "react-native@0.55.4" has incorrect peer dependency "react@16.3.1". warning "react-native-fs@2.10.14" has incorrect peer dependency "react-native@^0.51.0". warning "react-native-fs@2.10.14" has incorrect peer dependency "prop-types@15.6.0". [4/4] π Building fresh packages... success Saved lockfile. success Saved 114 new dependencies. ββ acorn-jsx@3.0.1 ββ acorn@5.6.2 ββ ajv-keywords@2.1.1 ββ ajv@5.5.2 ββ array-includes@3.0.3 ββ array-union@1.0.2 ββ array-uniq@1.0.3 ββ arrify@1.0.1 ββ babel-code-frame@6.26.0 ββ base-64@0.1.0 ββ caller-path@0.1.0 ββ callsites@0.2.0 ββ circular-json@0.3.3 ββ cli@1.0.1 ββ color-convert@1.9.1 ββ color-name@1.1.3 ββ color-string@1.5.2 ββ color@2.0.1 ββ console-browserify@1.1.0 ββ contains-path@0.1.0 ββ date-now@0.1.4 ββ del@2.2.2 ββ doctrine@1.5.0 ββ dom-serializer@0.1.0 ββ domelementtype@1.3.0 ββ domhandler@2.3.0 ββ domutils@1.5.1 ββ entities@1.0.0 ββ es-abstract@1.11.0 ββ eslint-config-standard@11.0.0 ββ eslint-import-resolver-node@0.3.2 ββ eslint-module-utils@2.2.0 ββ eslint-plugin-import@2.12.0 ββ eslint-plugin-node@6.0.1 ββ eslint-plugin-promise@3.8.0 ββ eslint-plugin-react@7.9.1 ββ eslint-plugin-standard@3.1.0 ββ eslint-scope@3.7.1 ββ eslint-visitor-keys@1.0.0 ββ eslint@4.19.1 ββ espree@3.5.4 ββ esquery@1.0.1 ββ esrecurse@4.2.1 ββ estraverse@4.2.0 ββ exit@0.1.2 ββ expect@23.1.0 ββ file-entry-cache@2.0.0 ββ flat-cache@1.3.0 ββ functional-red-black-tree@1.0.1 ββ globals@11.5.0 ββ globby@5.0.0 ββ htmlparser2@3.8.3 ββ ignore@3.3.8 ββ inherits@2.0.3 ββ is-arrayish@0.3.1 ββ is-path-cwd@1.0.0 ββ is-path-in-cwd@1.0.1 ββ is-path-inside@1.0.1 ββ is-resolvable@1.1.0 ββ isarray@1.0.0 ββ jest-cli@23.1.0 ββ jest-config@23.1.0 ββ jest-each@23.1.0 ββ jest-environment-jsdom@23.1.0 ββ jest-environment-node@23.1.0 ββ jest-jasmine2@23.1.0 ββ jest-message-util@23.1.0 ββ jest-mock@23.1.0 ββ jest-resolve@23.1.0 ββ jest-runner@23.1.0 ββ jest-runtime@23.1.0 ββ jest-util@23.1.0 ββ jest-watcher@23.1.0 ββ jest@23.1.0 ββ js-yaml@3.12.0 ββ jshint@2.9.5 ββ json-stable-stringify-without-jsonify@1.0.1 ββ jsx-ast-utils@2.0.1 ββ keymirror@0.1.1 ββ levn@0.3.0 ββ lodash@3.7.0 ββ minimatch@3.0.4 ββ optionator@0.8.2 ββ path-is-inside@1.0.2 ββ pkg-dir@1.0.0 ββ pluralize@7.0.0 ββ progress@2.0.0 ββ prop-types@15.6.1 ββ react-is@16.4.0 ββ react-native-camera@1.1.4 ββ react-native-fs@2.10.14 ββ react-native-in-app-utils@6.0.0 ββ react-native-sound-player@0.3.0 ββ react-native-svg@6.3.1 ββ react-native-vector-icons@4.6.0 ββ react-native-video@2.2.0 ββ react-test-renderer@16.4.0 ββ react@16.4.0 ββ readable-stream@1.1.13 ββ regexpp@1.1.0 ββ require-uncached@1.0.3 ββ resolve-from@1.0.1 ββ resolve@1.7.1 ββ rimraf@2.6.2 ββ shelljs@0.3.0 ββ simple-swizzle@0.2.2 ββ slice-ansi@1.0.0 ββ string_decoder@0.10.31 ββ strip-json-comments@1.0.4 ββ table@4.0.2 ββ text-table@0.2.0 ββ utf8@2.1.2 ββ write@0.2.1 ββ yargs@8.0.2 β¨ Done in 61.27s. Scanning folders for symlinks in /Users/cpcrowley/a/slp/st55/node_modules (12ms) rnpm-install info Linking react-native-in-app-utils ios dependency rnpm-install info Platform 'ios' module react-native-in-app-utils has been successfully linked rnpm-install info Module react-native-in-app-utils has been successfully installed & linked