Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PatoSala/react-native-blocks
/ functions
Functions
118 in github.com/PatoSala/react-native-blocks
⨍
Functions
118
◇
Types & classes
27
↓ 31 callers
Function
updateBlockV2
(blockId: string, blockData: Partial<Block>)
packages/core/src/components/BlocksContext.tsx:293
↓ 30 callers
Function
insertBlock
* Inserts a block into the content array of the parent block. If a position object is provided, the block will be inserted at the specified position.
packages/core/src/components/BlocksContext.tsx:97
↓ 29 callers
Function
createBlock
(block: Block)
packages/core/src/interfaces/Block.interface.ts:31
↓ 24 callers
Function
useBlocksContext
()
packages/core/src/components/BlocksContext.tsx:47
↓ 19 callers
Function
removeBlock
(blockId: string)
packages/core/src/components/BlocksContext.tsx:239
↓ 18 callers
Function
updateBlockData
(block: Block, updatedData: Partial<Block>)
packages/core/src/core/updateBlock.ts:10
↓ 18 callers
Function
useTextBlocksContext
()
packages/core/src/components/TextBlocksProvider.tsx:6
↓ 10 callers
Function
getTextInputProps
()
packages/core/src/hooks/useTextInput.ts:194
↓ 10 callers
Function
useTextInput
(blockId: string)
packages/core/src/hooks/useTextInput.ts:15
↓ 9 callers
Function
findPrevTextBlockInContent
(blockId: string, blocks: Record<string, Block>, textBlockTypes: string[])
packages/core/src/core/updateBlock.ts:57
↓ 8 callers
Function
updateBlock
* Does not trigger a re render
packages/core/src/components/BlocksContext.tsx:288
↓ 6 callers
Function
useFooterContext
()
packages/blocks/src/components/Footer/Footer.tsx:42
↓ 5 callers
Function
useBlockRegistrationContext
()
packages/core/src/components/BlockRegistration.tsx:12
↓ 4 callers
Function
insertBlockIdIntoContent
( contentArray: string[], newBlockId: string, options: { prevBlockId?: string; nextBlockId?: string } )
packages/core/src/core/updateBlock.ts:21
↓ 4 callers
Function
turnBlockInto
* Note: Only text based blocks can be turned into other text based block types (Maybe a better way to define which blocks can be turned into other blo
packages/core/src/components/BlocksContext.tsx:276
↓ 3 callers
Function
useBlocksMeasuresContext
()
packages/core/src/components/BlocksMeasuresProvider.tsx:26
↓ 2 callers
Function
containsEmoji
(str: string)
packages/blocks/src/PageBlock.tsx:18
↓ 2 callers
Function
findBlockAtPosition
(y: number)
packages/core/src/components/DragProvider.tsx:120
↓ 2 callers
Function
handleScrollTo
({ x, y, animated } : { x: number, y: number, animated: boolean })
packages/core/src/components/ScrollProvider.tsx:32
↓ 2 callers
Function
registerRef
(blockId, ref)
packages/core/src/components/TextBlocksProvider.tsx:14
↓ 2 callers
Function
useKeyboardStatus
()
packages/core/src/hooks/useKeyboardStatus.ts:6
↓ 2 callers
Function
useScrollContext
()
packages/core/src/components/ScrollProvider.tsx:13
↓ 1 callers
Function
extractBlocks
(blocks)
apps/example/App.tsx:73
↓ 1 callers
Function
getPreviousBlockInContent
(blockId: string, blocks: Record<string, Block>)
packages/core/src/core/updateBlock.ts:69
↓ 1 callers
Function
handleInsertBlock
(blockType: string)
packages/blocks/src/components/Footer/tabs/InsertBlockSection.tsx:16
↓ 1 callers
Function
handleMoveBlock
()
packages/core/src/components/DragProvider.tsx:139
↓ 1 callers
Function
handleOnKeyPress
* @deprecated * handleOnKeyPress is now handled within each block component for more flexibility.
packages/core/src/hooks/useTextInput.ts:102
↓ 1 callers
Function
handleOnLayout
()
packages/core/src/components/LayoutProvider.tsx:21
↓ 1 callers
Function
handleTurnBlockInto
(blockType: string)
packages/blocks/src/components/Footer/tabs/ReplaceBlockSection.tsx:10
↓ 1 callers
Function
mergeBlock
* * @param block * @returns * * Merge block with the block text before it. * Appends the text from the target block at th
packages/core/src/components/BlocksContext.tsx:210
↓ 1 callers
Function
moveBlock
(blockId: string, parentId: string, targetId: string, closestTo: "start" | "end")
packages/core/src/components/BlocksContext.tsx:252
↓ 1 callers
Function
pickIcon
()
packages/blocks/src/PageBlock.tsx:73
↓ 1 callers
Function
registerBlockMeasure
(blockId: string, measures: { height: number, width: number, start: number, end: number })
packages/core/src/components/BlocksMeasuresProvider.tsx:44
↓ 1 callers
Function
removeBlockMeasure
(blockId: string)
packages/core/src/components/BlocksMeasuresProvider.tsx:48
↓ 1 callers
Function
splitBlock
* * @param block * @param selection * * Split block into two blocks. * A new block will be inserted before the source blo
packages/core/src/components/BlocksContext.tsx:142
↓ 1 callers
Function
useBlock
(blockId: string)
packages/core/src/components/BlocksContext.tsx:55
Function
App
()
apps/example/App.tsx:71
Function
BlankSpace
({ onBlankSpacePress })
packages/core/src/components/Editor.tsx:16
Function
Block
(props: BlockProps)
packages/core/src/components/Block.tsx:11
Function
BlockRegistration
(props: any)
packages/core/src/components/BlockRegistration.tsx:20
Function
BlocksMeasuresProvider
({ children })
packages/core/src/components/BlocksMeasuresProvider.tsx:38
Function
BlocksProvider
({ children, defaultBlocks, extractBlocks }: any)
packages/core/src/components/BlocksContext.tsx:60
Function
BulletBlock
({ blockId } : Props)
packages/blocks/src/BulletBlock.tsx:17
Function
CalloutBlock
({ blockId } : Props)
packages/blocks/src/CalloutBlock.tsx:29
Function
CheckboxBlock
({ blockId } : Props)
packages/blocks/src/CheckboxBlock.tsx:17
Function
CodeBlock
({ blockId } : Props)
packages/blocks/src/CodeBlock.tsx:8
Function
DragProvider
({ children, blockId, })
packages/core/src/components/DragProvider.tsx:27
Function
Editor
(props : EditorProps)
packages/core/src/components/Editor.tsx:87
Function
Footer
({ children, style, } : FooterProps)
packages/blocks/src/components/Footer/Footer.tsx:80
Function
FormSheetModal
(props: Props)
packages/blocks/src/components/Modal/FormSheetModal.tsx:10
Function
GhostBlock
()
packages/core/src/components/BlocksMeasuresProvider.tsx:94
Function
HeaderBlock
({ blockId } : Props)
packages/blocks/src/HeaderBlock.tsx:16
Function
ImageBlock
(props: BlockProps)
packages/blocks/src/ImageBlock.tsx:19
Function
Indicator
()
packages/core/src/components/BlocksMeasuresProvider.tsx:58
Function
IndicatorProvider
({ children, position } : Props)
packages/core/src/components/IndicatorProvider.tsx:12
Function
InsertBlockSection
({ setActiveTab, setHidden } : any)
packages/blocks/src/components/Footer/tabs/InsertBlockSection.tsx:11
Function
LayoutProvider
({ children, blockId })
packages/core/src/components/LayoutProvider.tsx:8
Function
PageBlock
({ blockId } : Props)
packages/blocks/src/PageBlock.tsx:27
Function
QuoteBlock
({ blockId } : Props)
packages/blocks/src/QuoteBlock.tsx:8
Function
RenderTree
(props: RenderTreeProps)
packages/core/src/components/Editor.tsx:49
Function
ReplaceBlockSection
()
packages/blocks/src/components/Footer/tabs/ReplaceBlockSection.tsx:6
Function
ScrollProvider
({ children, contentContainerStyle })
packages/core/src/components/ScrollProvider.tsx:15
Function
SubHeaderBlock
({ blockId } : Props)
packages/blocks/src/SubHeaderBlock.tsx:15
Function
SubSubHeaderBlock
({ blockId } : Props)
packages/blocks/src/SubSubHeaderBlock.tsx:14
Function
TextBlock
({ blockId } : Props)
packages/blocks/src/TextBlock.tsx:27
Function
TextBlocksProvider
({ children })
packages/core/src/components/TextBlocksProvider.tsx:8
Method
constructor
({ type, properties, content = [], parent, } : Block)
packages/core/src/interfaces/Block.interface.ts:17
Function
handleBlankSpacePress
()
packages/core/src/components/Editor.tsx:27
Function
handleChangeText
(text: string)
packages/core/src/hooks/useTextInput.ts:190
Function
handleDragEnd
()
packages/core/src/components/ScrollProvider.tsx:24
Function
handleDragStart
()
packages/core/src/components/ScrollProvider.tsx:20
Function
handleEmojiSelect
(emoji: string)
packages/blocks/src/PageBlock.tsx:97
Function
handleGhostInputOnLayout
()
packages/core/src/components/TextBlocksProvider.tsx:22
Function
handleKeyPress
({ nativeEvent })
packages/core/src/hooks/useDetectKeyPress.ts:14
Function
handleOnBlur
()
packages/core/src/hooks/useTextInput.ts:89
Function
handleOnDragEnd
()
packages/core/src/components/DragProvider.tsx:192
Function
handleOnDragStart
()
packages/core/src/components/DragProvider.tsx:149
Function
handleOnDragUpdate
(e: GestureStateChangeEvent<PanGestureHandlerEventPayload>)
packages/core/src/components/DragProvider.tsx:162
Function
handleOnFocus
()
packages/core/src/hooks/useTextInput.ts:186
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/CheckboxBlock.tsx:119
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/BulletBlock.tsx:117
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/CalloutBlock.tsx:133
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/TextBlock.tsx:109
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/PageBlock.tsx:217
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/HeaderBlock.tsx:116
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/SubSubHeaderBlock.tsx:113
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/SubHeaderBlock.tsx:114
Function
handleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/QuoteBlock.tsx:108
Function
handleOnPress
()
packages/blocks/src/components/Footer/Footer.tsx:158
Function
handleOnScroll
(event: { nativeEvent: { contentOffset: { y: number; }; }; })
packages/core/src/components/ScrollProvider.tsx:28
Function
handleOpenKeyboard
()
packages/blocks/src/components/Footer/Footer.tsx:255
Function
handleRemoveBlock
()
packages/blocks/src/ImageBlock.tsx:53
Function
handleRemoveBlock
()
packages/blocks/src/CalloutBlock.tsx:203
Function
handleRemoveCover
()
packages/blocks/src/PageBlock.tsx:121
Function
handleRemoveIcon
()
packages/blocks/src/PageBlock.tsx:111
Function
handleSelectionChange
(event: { nativeEvent: { selection: { start: number; end: number; }; }; })
packages/core/src/hooks/useTextInput.ts:84
Function
handleSubmitEditing
()
packages/core/src/hooks/useTextInput.ts:145
Function
handleSubmitEditing
()
packages/blocks/src/CheckboxBlock.tsx:30
Function
handleSubmitEditing
()
packages/blocks/src/BulletBlock.tsx:28
Function
handleSubmitEditing
()
packages/blocks/src/CalloutBlock.tsx:44
next →
1–100 of 118, ranked by callers