Skip to content
No description, website, or topics provided.
Objective-C JavaScript
Branch: master
Clone or download
SjoenH Bump eslint-utils from 1.4.0 to 1.4.2 (#7)
Bump eslint-utils from 1.4.0 to 1.4.2
Latest commit 38a9306 Oct 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ios fixed issue where header search path was wrong for debug profile, bum… May 24, 2017
js configure on android should fail with not implemented aswell as js co… May 23, 2017
.babelrc initial commit May 22, 2017
.eslintignore initial commit May 22, 2017
.eslintrc.js fixed vulnerabilities (upgraded eslint) Aug 13, 2019
.gitattributes initial commit May 22, 2017
.gitignore
.tern-project initial commit May 22, 2017
README.md
package-lock.json Bump eslint-utils from 1.4.0 to 1.4.2 Oct 11, 2019
package.json fixed vulnerabilities (upgraded eslint) Aug 13, 2019

README.md

react-native-trustkit-wrapper

A simple wrapper around Trustkit for react-native.

Prerequisites

A working react native project. Tested on react-native 0.44 and above A working CocoaPods installation CocoaPods - Getting Started

Installation

  1. Install from npm npm install --save react-native-trustkit-wrapper or yarn add react-native-trustkit-wrapper
  2. Run react-native link react-native-trustkit-wrapper to link ios and android project

iOS

  1. Add TrustKit to your cocoapods configuration (PodFile) pod 'TrustKit', '~> 1.4.2'
  2. Run pod install to install cocoapods dependencies

Android

  1. Not yet supported

Usage

import configureTrustKit from 'react-native-trustkit-wrapper';

configureTrustKit({
  PinnedDomain: {
    'my.api.com': {
      IncludeSubdomains: true,
      EnforcePinning: true,
      PublicKeyAlgorithms: [
        'AlgorithmRsa2048',
        'AlgorithmRsa4096',
      ],
      PublicKeyHashes: [
        'HXXQgxueCIU5TTLHob/bPbwcKOKw6DkfsTWYHbxbqTY=',
        '0SDf3cRToyZJaMsoS17oF72VMavLxj/N7WBNasNuiR8=',
      ],
      ReportUris: [
        'https://my.api.com/log_report',
      ],
    },
  },
  SwizzleNetworkDelegates: true,
}).catch((err) => {
  if (err.code === 'trustkit_initialized') {
    console.warn('Trust kit configuration only changed when app re-launches');
  }
});

See the TrustKit documentation for more information

You can’t perform that action at this time.