Skip to content

Commit

Permalink
[RNMobile] Remove new block types (#49895)
Browse files Browse the repository at this point in the history
* Add example to `NEW_BLOCK_TYPES`

* Set new block types empty

* Update packages/block-library/src/index.native.js

Co-authored-by: David Calhoun <github@davidcalhoun.me>

---------

Co-authored-by: David Calhoun <github@davidcalhoun.me>
  • Loading branch information
fluiddot and dcalhoun committed Apr 18, 2023
1 parent 7b8395e commit 39b866e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/block-library/src/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,14 @@ export const registerCoreBlocks = () => {
* than 0, a "new" badge is displayed on the block type within the block
* inserter.
*
* With the below example, the Audio block will be displayed as "new" until its
* impression count reaches 0, which occurs by various actions decrementing
* the impression count.
*
* {
* [ audio.name ]: 40
* }
*
* @constant {{ string, number }}
*/
export const NEW_BLOCK_TYPES = {
[ embed.name ]: 40,
[ search.name ]: 40,
[ audio.name ]: 40,
};
export const NEW_BLOCK_TYPES = {};

0 comments on commit 39b866e

Please sign in to comment.