├── .watchmanconfig
├── .gitignore
├── config
└── enzymeAdapter.js
├── coverage
├── lcov-report
│ ├── sort-arrow-sprite.png
│ ├── prettify.css
│ ├── config
│ │ ├── enzymeAdapter.js.html
│ │ └── index.html
│ ├── web
│ │ ├── index.html
│ │ └── braintreeReact.js.html
│ ├── index.html
│ ├── sorter.js
│ ├── base.css
│ └── prettify.js
├── lcov.info
├── clover.xml
└── coverage-final.json
├── web
├── component.js
├── braintreeReact.html
├── braintreeReactHTML.test.js
└── braintreeReactHTML.js
├── .babelrc
├── dist
└── index.html
├── LICENSE
├── webpack.config.js
├── .flowconfig
├── package.json
├── README.md
├── gulpfile.js
├── WebViewBraintree.js
├── react.production.min.js
└── yarn directions.md
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | .expo/
3 | npm-debug.*
4 |
--------------------------------------------------------------------------------
/config/enzymeAdapter.js:
--------------------------------------------------------------------------------
1 | import Enzyme from 'enzyme';
2 | import Adapter from 'enzyme-adapter-react-16';
3 |
4 | Enzyme.configure({ adapter: new Adapter() });
--------------------------------------------------------------------------------
/coverage/lcov-report/sort-arrow-sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reggie3/react-native-webview-braintree/HEAD/coverage/lcov-report/sort-arrow-sprite.png
--------------------------------------------------------------------------------
/web/component.js:
--------------------------------------------------------------------------------
1 |
2 | import ReactDOM from "react-dom";
3 | import BraintreeReactHTML from './braintreeReactHTML';
4 | import React from "react";
5 |
6 | ReactDOM.render(
| 1 47 | 2 48 | 3 49 | 4 | 50 | 51 | 52 | 1x | import Enzyme from 'enzyme';
53 | import Adapter from 'enzyme-adapter-react-16';
54 |
55 | Enzyme.configure({ adapter: new Adapter() }); |
| File | 50 |51 | | Statements | 52 |53 | | Branches | 54 |55 | | Functions | 56 |57 | | Lines | 58 |59 | |
|---|---|---|---|---|---|---|---|---|---|
| enzymeAdapter.js | 63 |100% | 65 |1/1 | 66 |100% | 67 |0/0 | 68 |100% | 69 |0/0 | 70 |100% | 71 |1/1 | 72 |
| File | 50 |51 | | Statements | 52 |53 | | Branches | 54 |55 | | Functions | 56 |57 | | Lines | 58 |59 | |
|---|---|---|---|---|---|---|---|---|---|
| braintreeReact.js | 63 |35.71% | 65 |15/42 | 66 |0% | 67 |0/10 | 68 |29.41% | 69 |5/17 | 70 |35.71% | 71 |15/42 | 72 |
| File | 50 |51 | | Statements | 52 |53 | | Branches | 54 |55 | | Functions | 56 |57 | | Lines | 58 |59 | |
|---|---|---|---|---|---|---|---|---|---|
| config | 63 |100% | 65 |1/1 | 66 |100% | 67 |0/0 | 68 |100% | 69 |0/0 | 70 |100% | 71 |1/1 | 72 ||
| web | 76 |35.71% | 78 |15/42 | 79 |0% | 80 |0/10 | 81 |29.41% | 82 |5/17 | 83 |35.71% | 84 |15/42 | 85 |