-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RNMobile] Do not include MediaReplaceFlow component in native Galler…
…y toolbar (#52966) * Do not display MediaReplaceFlow component in native Gallery block * Add integration test to hide MediaReplaceFlow component in Gallery block * Update CHANGELOG * Update test selector syntax Co-authored-by: David Calhoun <github@davidcalhoun.me> --------- Co-authored-by: David Calhoun <github@davidcalhoun.me>
- Loading branch information
1 parent
1ca7922
commit 4404be9
Showing
4 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
15 changes: 12 additions & 3 deletions
15
packages/block-editor/src/components/media-replace-flow/index.native.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
// MediaReplaceFlow component is not yet implemented in the native version, | ||
// so we return an empty component instead. | ||
export default () => null; | ||
/** | ||
* External dependencies | ||
*/ | ||
import { View } from 'react-native'; | ||
|
||
// MediaReplaceFlow component is not yet implemented in the native version. | ||
// For testing purposes, we are using an empty View component with a testID prop. | ||
const MediaReplaceFlow = () => { | ||
return <View testID="media-replace-flow" />; | ||
}; | ||
|
||
export default MediaReplaceFlow; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters