From 3631ee61fa233cfcc4bd1b2ed88d6fcc084b3ff7 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Tue, 19 Nov 2019 15:04:07 +0100 Subject: [PATCH 1/9] enable preformatted block for production and android --- packages/block-library/src/index.native.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 98903cad72919..c29e1f2d8ee3e 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -146,8 +146,7 @@ export const registerCoreBlocks = () => { list, quote, mediaText, - // eslint-disable-next-line no-undef - ( ( Platform.OS === 'ios' ) || ( !! __DEV__ ) ) ? preformatted : null, + preformatted, // eslint-disable-next-line no-undef !! __DEV__ ? group : null, // eslint-disable-next-line no-undef From 683939797f21cbc8d172fe4ce83e613435d50abc Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Mon, 25 Nov 2019 15:29:07 +0100 Subject: [PATCH 2/9] Fix lint errors --- packages/block-library/src/index.native.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index c29e1f2d8ee3e..2e27b59750526 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -1,7 +1,3 @@ -/** - * External dependencies - */ -import { Platform } from 'react-native'; /** * WordPress dependencies */ From 2a6bf6c9f81cb2c82a703bf3687bb4ec079b7314 Mon Sep 17 00:00:00 2001 From: Gerardo Pacheco Date: Tue, 26 Nov 2019 17:40:23 +0100 Subject: [PATCH 3/9] [RNMobile] Enable Spacer block (#18605) --- packages/block-library/src/index.native.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 98903cad72919..22e534fb2669e 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -150,8 +150,7 @@ export const registerCoreBlocks = () => { ( ( Platform.OS === 'ios' ) || ( !! __DEV__ ) ) ? preformatted : null, // eslint-disable-next-line no-undef !! __DEV__ ? group : null, - // eslint-disable-next-line no-undef - !! __DEV__ ? spacer : null, + spacer, ].forEach( registerBlock ); setDefaultBlockName( paragraph.name ); From 4a2d212aa8405564684ab0b4ec5cfe745bde1281 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Tue, 19 Nov 2019 15:04:07 +0100 Subject: [PATCH 4/9] enable preformatted block for production and android --- packages/block-library/src/index.native.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 22e534fb2669e..44abe6d8af92c 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -146,8 +146,7 @@ export const registerCoreBlocks = () => { list, quote, mediaText, - // eslint-disable-next-line no-undef - ( ( Platform.OS === 'ios' ) || ( !! __DEV__ ) ) ? preformatted : null, + preformatted, // eslint-disable-next-line no-undef !! __DEV__ ? group : null, spacer, From 371ee9042bf4d94ed78b593f6576a379b0f2aab2 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Mon, 25 Nov 2019 15:29:07 +0100 Subject: [PATCH 5/9] Fix lint errors --- packages/block-library/src/index.native.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 44abe6d8af92c..4383ff3506571 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -1,7 +1,3 @@ -/** - * External dependencies - */ -import { Platform } from 'react-native'; /** * WordPress dependencies */ From 40b9cba245876d3f53d0937bc49dfc1de4edb1d0 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Tue, 19 Nov 2019 15:04:07 +0100 Subject: [PATCH 6/9] enable preformatted block for production and android --- packages/block-library/src/index.native.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 22e534fb2669e..44abe6d8af92c 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -146,8 +146,7 @@ export const registerCoreBlocks = () => { list, quote, mediaText, - // eslint-disable-next-line no-undef - ( ( Platform.OS === 'ios' ) || ( !! __DEV__ ) ) ? preformatted : null, + preformatted, // eslint-disable-next-line no-undef !! __DEV__ ? group : null, spacer, From 9ad3068b5218a1c3fdc6ade43eb1f28a4d498b43 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Mon, 25 Nov 2019 15:29:07 +0100 Subject: [PATCH 7/9] Fix lint errors --- packages/block-library/src/index.native.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 44abe6d8af92c..4383ff3506571 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -1,7 +1,3 @@ -/** - * External dependencies - */ -import { Platform } from 'react-native'; /** * WordPress dependencies */ From 8eb443bdfe833898b01a31695553dd920137e67b Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Tue, 19 Nov 2019 15:04:07 +0100 Subject: [PATCH 8/9] enable preformatted block for production and android --- packages/block-library/src/index.native.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 22e534fb2669e..44abe6d8af92c 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -146,8 +146,7 @@ export const registerCoreBlocks = () => { list, quote, mediaText, - // eslint-disable-next-line no-undef - ( ( Platform.OS === 'ios' ) || ( !! __DEV__ ) ) ? preformatted : null, + preformatted, // eslint-disable-next-line no-undef !! __DEV__ ? group : null, spacer, From 909a4994301cb87c1e7d8f226b8ae77a9931b29a Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Mon, 25 Nov 2019 15:29:07 +0100 Subject: [PATCH 9/9] Fix lint errors --- packages/block-library/src/index.native.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 44abe6d8af92c..4383ff3506571 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -1,7 +1,3 @@ -/** - * External dependencies - */ -import { Platform } from 'react-native'; /** * WordPress dependencies */