Skip to content

Commit

Permalink
[RNMobile] Remove dev only restriction for pullquote block on Android (
Browse files Browse the repository at this point in the history
…#24921)

* Remove dev only restriction for pullquote block on Android

* Lint exception to keep iOS only function

* Updated changelog
  • Loading branch information
cameronvoell authored Aug 31, 2020
1 parent 74ccff1 commit b418bf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const registerBlockVariations = ( block ) => {
// eslint-disable-next-line no-undef
const devOnly = ( block ) => ( !! __DEV__ ? block : null );

// eslint-disable-next-line no-unused-vars
const iOSOnly = ( block ) =>
Platform.OS === 'ios' ? block : devOnly( block );

Expand Down Expand Up @@ -219,7 +220,7 @@ export const registerCoreBlocks = () => {
cover,
socialLink,
socialLinks,
iOSOnly( pullquote ),
pullquote,
].forEach( registerBlock );

registerBlockVariations( socialLink );
Expand Down
4 changes: 4 additions & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ For each user feature we should also add a importance categorization label to i
## Unreleased
* [**] Reflect changes of slider in block settings immediately.

## 1.36.0

* [**] [Android] Removed pullquote dev only restriction in Android

## 1.35.0

* [***] Fixed empty text fields on RTL layout. Now they are selectable and placeholders are visible.
Expand Down

0 comments on commit b418bf7

Please sign in to comment.