From fe7818cd59c8e61cca247b6d1f7ebe66a7d96780 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 23 Nov 2021 17:50:51 -0700 Subject: [PATCH 1/3] remove div --- src/components/Onfido/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Onfido/index.js b/src/components/Onfido/index.js index 0c3d0b885da2..9576d82db8d3 100644 --- a/src/components/Onfido/index.js +++ b/src/components/Onfido/index.js @@ -9,6 +9,7 @@ import variables from '../../styles/variables'; import colors from '../../styles/colors'; import fontWeightBold from '../../styles/fontWeight/bold'; import fontFamily from '../../styles/fontFamily'; +import {View} from 'react-native-web'; const propTypes = { ...withLocalizePropTypes, @@ -103,7 +104,7 @@ class Onfido extends React.Component { render() { return ( -
+ ); } } From 0e2ff1962b6e5f2b3c29139bb11c8b8dca9a0a12 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Tue, 23 Nov 2021 17:51:15 -0700 Subject: [PATCH 2/3] move import --- src/components/Onfido/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Onfido/index.js b/src/components/Onfido/index.js index 9576d82db8d3..8ffa2e218e8e 100644 --- a/src/components/Onfido/index.js +++ b/src/components/Onfido/index.js @@ -1,6 +1,7 @@ import './index.css'; import lodashGet from 'lodash/get'; import React from 'react'; +import {View} from 'react-native-web'; import * as OnfidoSDK from 'onfido-sdk-ui'; import withLocalize, {withLocalizePropTypes} from '../withLocalize'; import onfidoPropTypes from './onfidoPropTypes'; @@ -9,7 +10,6 @@ import variables from '../../styles/variables'; import colors from '../../styles/colors'; import fontWeightBold from '../../styles/fontWeight/bold'; import fontFamily from '../../styles/fontFamily'; -import {View} from 'react-native-web'; const propTypes = { ...withLocalizePropTypes, From 5f72865419ee6a0349ff99d57a8c5e14621625fd Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 24 Nov 2021 11:20:46 -0700 Subject: [PATCH 3/3] import correct library --- src/components/Onfido/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Onfido/index.js b/src/components/Onfido/index.js index 8ffa2e218e8e..e69ef5f08bf3 100644 --- a/src/components/Onfido/index.js +++ b/src/components/Onfido/index.js @@ -1,7 +1,7 @@ import './index.css'; import lodashGet from 'lodash/get'; import React from 'react'; -import {View} from 'react-native-web'; +import {View} from 'react-native'; import * as OnfidoSDK from 'onfido-sdk-ui'; import withLocalize, {withLocalizePropTypes} from '../withLocalize'; import onfidoPropTypes from './onfidoPropTypes';