✨ Add stripe dep

⬆ Relock deps, fixing some warnings
This commit is contained in:
nikolark committed 2022-08-01 00:35:48 +02:00
1 parent 714e8fb7dc
commit eeef714043
4 files changed
+1809 -2246

No files matched your search

-3
View File
@@ -5,9 +5,6 @@ import { NativeModules } from 'react-native';
// ref https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/async-storage-mock';
jest.doMock('tipsi-stripe', () => ({
setOptions: jest.fn(),
}));
jest.doMock('react-dom/server', () => {}, { virtual: true });
global.fetch = require('jest-fetch-mock');
+5 -4
View File
@@ -16,11 +16,12 @@
},
"dependencies": {
"@apollo/client": "^3.4.14",
"@react-native-async-storage/async-storage": "^1.15.8",
"@react-native-async-storage/async-storage": "^1.17.7",
"@react-navigation/bottom-tabs": "^6.0.7",
"@react-navigation/native": "^6.0.4",
"@react-navigation/native-stack": "^6.2.2",
"@sentry/react-native": "^3.1.1",
"@stripe/stripe-react-native": "^0.16.0",
"@testing-library/react-native": "^7.2.0",
"email-validator": "^2.0.4",
"graphql": "^15.6.0",
@@ -44,8 +45,7 @@
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0",
"styled-components": "^5.3.1",
"styled-system": "^5.1.5",
"tipsi-stripe": "^7.5.0"
"styled-system": "^5.1.5"
},
"devDependencies": {
"@babel/core": "^7.18.9",
@@ -67,6 +67,7 @@
"metro-react-native-babel-preset": "^0.67.0",
"prettier": "^2.7.1",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2"
"react-test-renderer": "^17.0.2",
"typescript": "^4.7.4"
}
}
+9 -4
View File
@@ -3,7 +3,7 @@ import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import Config from 'react-native-config';
import { ApolloClient, HttpLink, InMemoryCache, ApolloProvider } from '@apollo/client';
// import { StripeProvider } from '@stripe/stripe-react-native';
import { StripeProvider } from '@stripe/stripe-react-native';
import Dusken from './Dusken';
import { store, persistor } from './reduxStore';
@@ -13,16 +13,21 @@ const apolloClient = new ApolloClient({
cache: new InMemoryCache(),
});
// <StripeProvider publishableKey={Config.STRIPE_PUBLISHABLE_KEY || ''}>
export default function App() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ApolloProvider client={apolloClient}>
<Dusken />
{/* FIXME: Read urlScheme and merchantIdentifier from .Config */}
<StripeProvider
publishableKey={Config.STRIPE_PUBLISHABLE_KEY || ''}
urlScheme="no-neuf-chateau"
merchantIdentifier="merchant.com.dusken"
>
<Dusken />
</StripeProvider>
</ApolloProvider>
</PersistGate>
</Provider>
);
}
// </StripeProvider>
+1795 -2235
View File
File diff suppressed because it is too large. Load diff