From 54a6438eaab6358793b485fec3dffcb38973d21e Mon Sep 17 00:00:00 2001 From: Jorge Cabiedes Acosta Date: Thu, 1 Aug 2024 10:38:53 -0700 Subject: [PATCH] Fix default imageSource on Filters example (#45799) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45799 No idea how I missed this but I don't think `defaultProps` is a thing in React Native? So the images were not showing Changelog: [internal] Reviewed By: joevilches Differential Revision: D60392853 fbshipit-source-id: 27280033fb719340a809053d6ca98ac3f178c8c3 --- packages/rn-tester/js/examples/Filter/FilterExample.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/rn-tester/js/examples/Filter/FilterExample.js b/packages/rn-tester/js/examples/Filter/FilterExample.js index d527f2008ba..c97cb5789fa 100644 --- a/packages/rn-tester/js/examples/Filter/FilterExample.js +++ b/packages/rn-tester/js/examples/Filter/FilterExample.js @@ -24,10 +24,6 @@ type Props = $ReadOnly<{ imageSource?: number, }>; -const defaultProps = { - imageSource: hotdog, -}; - function StaticViewAndImage(props: Props): React.Node { return ( <> @@ -47,12 +43,12 @@ function StaticViewAndImage(props: Props): React.Node { @@ -60,7 +56,6 @@ function StaticViewAndImage(props: Props): React.Node { ); } -StaticViewAndImage.defaultProps = defaultProps; function StaticViewAndImageWithState(props: Props): React.Node { const [s, setS] = React.useState(true);