Skip to content

Commit

Permalink
Merge pull request #19 from getsentry/feature/app-prefix
Browse files Browse the repository at this point in the history
Add app:// prefix for react-native, Fix docs
  • Loading branch information
HazAT authored Mar 22, 2017
2 parents 2542e37 + b618257 commit 601293c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ In order to use Sentry with cocoapods you have to install the packages with
``npm`` or ``yarn`` and link them locally in your ``Podfile``.

.. sourcecode:: bash

npm install --save react react-native react-native-sentry

After that change your ``Podfile`` to reference to the packages in your
``node_modules`` folder.

.. sourcecode:: ruby

platform :ios, '8.0'
use_frameworks!

Expand Down
2 changes: 1 addition & 1 deletion lib/raven-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var ASYNC_STORAGE_KEY = '--raven-js-global-error-payload--';
*/
function normalizeUrl(url, pathStripRe) {
return url
.replace(/^file\:\/\//, '')
.replace(/^file\:\/\//, 'app://')
.replace(pathStripRe, '');
}

Expand Down

0 comments on commit 601293c

Please sign in to comment.