Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3343038
D5924.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D5924.diff
View Options
diff --git a/patches/react-native-firebase+5.6.0.patch b/patches/react-native-firebase+5.6.0.patch
--- a/patches/react-native-firebase+5.6.0.patch
+++ b/patches/react-native-firebase+5.6.0.patch
@@ -47,6 +47,89 @@
/*
* Export Auth types
+diff --git a/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js b/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js
+index 1c40468..66e191c 100644
+--- a/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js
++++ b/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js
+@@ -1,26 +1,10 @@
+ import React from 'react';
+-import { ViewPropTypes, requireNativeComponent, Platform } from 'react-native';
++import { requireNativeComponent, Platform } from 'react-native';
+ import PropTypes from 'prop-types';
+ import EventTypes, { NativeExpressEventTypes } from './EventTypes';
+ import { nativeToJSError } from '../../utils';
+ import AdRequest from './AdRequest';
+ import VideoOptions from './VideoOptions';
+-const adMobPropTypes = { ...ViewPropTypes,
+- size: PropTypes.string.isRequired,
+- unitId: PropTypes.string.isRequired,
+-
+- /* eslint-disable react/forbid-prop-types */
+- request: PropTypes.object,
+- video: PropTypes.object
+- /* eslint-enable react/forbid-prop-types */
+-
+-};
+-Object.keys(EventTypes).forEach(eventType => {
+- adMobPropTypes[eventType] = PropTypes.func;
+-});
+-Object.keys(NativeExpressEventTypes).forEach(eventType => {
+- adMobPropTypes[eventType] = PropTypes.func;
+-});
+ const nativeComponents = {};
+
+ function getNativeComponent(name) {
+@@ -35,7 +19,6 @@ function getNativeComponent(name) {
+ }
+
+ class AdMobComponent extends React.Component {
+- static propTypes = adMobPropTypes;
+ static defaultProps = {
+ request: new AdRequest().addTestDevice().build(),
+ video: new VideoOptions().build()
+diff --git a/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js.flow b/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js.flow
+index 4162bb1..f37c353 100644
+--- a/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js.flow
++++ b/node_modules/react-native-firebase/dist/modules/admob/AdMobComponent.js.flow
+@@ -1,5 +1,5 @@
+ import React from 'react';
+-import { ViewPropTypes, requireNativeComponent, Platform } from 'react-native';
++import { requireNativeComponent, Platform } from 'react-native';
+ import PropTypes from 'prop-types';
+ import EventTypes, { NativeExpressEventTypes } from './EventTypes';
+ import { nativeToJSError } from '../../utils';
+@@ -7,22 +7,6 @@ import { nativeToJSError } from '../../utils';
+ import AdRequest from './AdRequest';
+ import VideoOptions from './VideoOptions';
+
+-const adMobPropTypes = {
+- ...ViewPropTypes,
+- size: PropTypes.string.isRequired,
+- unitId: PropTypes.string.isRequired,
+- /* eslint-disable react/forbid-prop-types */
+- request: PropTypes.object,
+- video: PropTypes.object,
+- /* eslint-enable react/forbid-prop-types */
+-};
+-Object.keys(EventTypes).forEach(eventType => {
+- adMobPropTypes[eventType] = PropTypes.func;
+-});
+-Object.keys(NativeExpressEventTypes).forEach(eventType => {
+- adMobPropTypes[eventType] = PropTypes.func;
+-});
+-
+ const nativeComponents = {};
+
+ function getNativeComponent(name) {
+@@ -37,8 +21,6 @@ function getNativeComponent(name) {
+ }
+
+ class AdMobComponent extends React.Component {
+- static propTypes = adMobPropTypes;
+-
+ static defaultProps = {
+ request: new AdRequest().addTestDevice().build(),
+ video: new VideoOptions().build(),
diff --git a/node_modules/react-native-firebase/dist/modules/admob/AdRequest.js.flow b/node_modules/react-native-firebase/dist/modules/admob/AdRequest.js.flow
index 41d2d5d..c2f5e0a 100644
--- a/node_modules/react-native-firebase/dist/modules/admob/AdRequest.js.flow
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 2:27 AM (18 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2567516
Default Alt Text
D5924.diff (3 KB)
Attached To
Mode
D5924: [native] [29/40] RN 0.70: Patch react-native-firebase to avoid importing ViewPropTypes
Attached
Detach File
Event Timeline
Log In to Comment