MCPcopy Create free account

hub / github.com/PatoSala/react-native-blocks / functions

Functions118 in github.com/PatoSala/react-native-blocks

↓ 31 callersFunctionupdateBlockV2
(blockId: string, blockData: Partial<Block>)
packages/core/src/components/BlocksContext.tsx:293
↓ 30 callersFunctioninsertBlock
* 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 callersFunctioncreateBlock
(block: Block)
packages/core/src/interfaces/Block.interface.ts:31
↓ 24 callersFunctionuseBlocksContext
()
packages/core/src/components/BlocksContext.tsx:47
↓ 19 callersFunctionremoveBlock
(blockId: string)
packages/core/src/components/BlocksContext.tsx:239
↓ 18 callersFunctionupdateBlockData
(block: Block, updatedData: Partial<Block>)
packages/core/src/core/updateBlock.ts:10
↓ 18 callersFunctionuseTextBlocksContext
()
packages/core/src/components/TextBlocksProvider.tsx:6
↓ 10 callersFunctiongetTextInputProps
()
packages/core/src/hooks/useTextInput.ts:194
↓ 10 callersFunctionuseTextInput
(blockId: string)
packages/core/src/hooks/useTextInput.ts:15
↓ 9 callersFunctionfindPrevTextBlockInContent
(blockId: string, blocks: Record<string, Block>, textBlockTypes: string[])
packages/core/src/core/updateBlock.ts:57
↓ 8 callersFunctionupdateBlock
* Does not trigger a re render
packages/core/src/components/BlocksContext.tsx:288
↓ 6 callersFunctionuseFooterContext
()
packages/blocks/src/components/Footer/Footer.tsx:42
↓ 5 callersFunctionuseBlockRegistrationContext
()
packages/core/src/components/BlockRegistration.tsx:12
↓ 4 callersFunctioninsertBlockIdIntoContent
( contentArray: string[], newBlockId: string, options: { prevBlockId?: string; nextBlockId?: string } )
packages/core/src/core/updateBlock.ts:21
↓ 4 callersFunctionturnBlockInto
* 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 callersFunctionuseBlocksMeasuresContext
()
packages/core/src/components/BlocksMeasuresProvider.tsx:26
↓ 2 callersFunctioncontainsEmoji
(str: string)
packages/blocks/src/PageBlock.tsx:18
↓ 2 callersFunctionfindBlockAtPosition
(y: number)
packages/core/src/components/DragProvider.tsx:120
↓ 2 callersFunctionhandleScrollTo
({ x, y, animated } : { x: number, y: number, animated: boolean })
packages/core/src/components/ScrollProvider.tsx:32
↓ 2 callersFunctionregisterRef
(blockId, ref)
packages/core/src/components/TextBlocksProvider.tsx:14
↓ 2 callersFunctionuseKeyboardStatus
()
packages/core/src/hooks/useKeyboardStatus.ts:6
↓ 2 callersFunctionuseScrollContext
()
packages/core/src/components/ScrollProvider.tsx:13
↓ 1 callersFunctionextractBlocks
(blocks)
apps/example/App.tsx:73
↓ 1 callersFunctiongetPreviousBlockInContent
(blockId: string, blocks: Record<string, Block>)
packages/core/src/core/updateBlock.ts:69
↓ 1 callersFunctionhandleInsertBlock
(blockType: string)
packages/blocks/src/components/Footer/tabs/InsertBlockSection.tsx:16
↓ 1 callersFunctionhandleMoveBlock
()
packages/core/src/components/DragProvider.tsx:139
↓ 1 callersFunctionhandleOnKeyPress
* @deprecated * handleOnKeyPress is now handled within each block component for more flexibility.
packages/core/src/hooks/useTextInput.ts:102
↓ 1 callersFunctionhandleOnLayout
()
packages/core/src/components/LayoutProvider.tsx:21
↓ 1 callersFunctionhandleTurnBlockInto
(blockType: string)
packages/blocks/src/components/Footer/tabs/ReplaceBlockSection.tsx:10
↓ 1 callersFunctionmergeBlock
* * @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 callersFunctionmoveBlock
(blockId: string, parentId: string, targetId: string, closestTo: "start" | "end")
packages/core/src/components/BlocksContext.tsx:252
↓ 1 callersFunctionpickIcon
()
packages/blocks/src/PageBlock.tsx:73
↓ 1 callersFunctionregisterBlockMeasure
(blockId: string, measures: { height: number, width: number, start: number, end: number })
packages/core/src/components/BlocksMeasuresProvider.tsx:44
↓ 1 callersFunctionremoveBlockMeasure
(blockId: string)
packages/core/src/components/BlocksMeasuresProvider.tsx:48
↓ 1 callersFunctionsplitBlock
* * @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 callersFunctionuseBlock
(blockId: string)
packages/core/src/components/BlocksContext.tsx:55
FunctionApp
()
apps/example/App.tsx:71
FunctionBlankSpace
({ onBlankSpacePress })
packages/core/src/components/Editor.tsx:16
FunctionBlock
(props: BlockProps)
packages/core/src/components/Block.tsx:11
FunctionBlockRegistration
(props: any)
packages/core/src/components/BlockRegistration.tsx:20
FunctionBlocksMeasuresProvider
({ children })
packages/core/src/components/BlocksMeasuresProvider.tsx:38
FunctionBlocksProvider
({ children, defaultBlocks, extractBlocks }: any)
packages/core/src/components/BlocksContext.tsx:60
FunctionBulletBlock
({ blockId } : Props)
packages/blocks/src/BulletBlock.tsx:17
FunctionCalloutBlock
({ blockId } : Props)
packages/blocks/src/CalloutBlock.tsx:29
FunctionCheckboxBlock
({ blockId } : Props)
packages/blocks/src/CheckboxBlock.tsx:17
FunctionCodeBlock
({ blockId } : Props)
packages/blocks/src/CodeBlock.tsx:8
FunctionDragProvider
({ children, blockId, })
packages/core/src/components/DragProvider.tsx:27
FunctionEditor
(props : EditorProps)
packages/core/src/components/Editor.tsx:87
FunctionFooter
({ children, style, } : FooterProps)
packages/blocks/src/components/Footer/Footer.tsx:80
FunctionFormSheetModal
(props: Props)
packages/blocks/src/components/Modal/FormSheetModal.tsx:10
FunctionGhostBlock
()
packages/core/src/components/BlocksMeasuresProvider.tsx:94
FunctionHeaderBlock
({ blockId } : Props)
packages/blocks/src/HeaderBlock.tsx:16
FunctionImageBlock
(props: BlockProps)
packages/blocks/src/ImageBlock.tsx:19
FunctionIndicator
()
packages/core/src/components/BlocksMeasuresProvider.tsx:58
FunctionIndicatorProvider
({ children, position } : Props)
packages/core/src/components/IndicatorProvider.tsx:12
FunctionInsertBlockSection
({ setActiveTab, setHidden } : any)
packages/blocks/src/components/Footer/tabs/InsertBlockSection.tsx:11
FunctionLayoutProvider
({ children, blockId })
packages/core/src/components/LayoutProvider.tsx:8
FunctionPageBlock
({ blockId } : Props)
packages/blocks/src/PageBlock.tsx:27
FunctionQuoteBlock
({ blockId } : Props)
packages/blocks/src/QuoteBlock.tsx:8
FunctionRenderTree
(props: RenderTreeProps)
packages/core/src/components/Editor.tsx:49
FunctionReplaceBlockSection
()
packages/blocks/src/components/Footer/tabs/ReplaceBlockSection.tsx:6
FunctionScrollProvider
({ children, contentContainerStyle })
packages/core/src/components/ScrollProvider.tsx:15
FunctionSubHeaderBlock
({ blockId } : Props)
packages/blocks/src/SubHeaderBlock.tsx:15
FunctionSubSubHeaderBlock
({ blockId } : Props)
packages/blocks/src/SubSubHeaderBlock.tsx:14
FunctionTextBlock
({ blockId } : Props)
packages/blocks/src/TextBlock.tsx:27
FunctionTextBlocksProvider
({ children })
packages/core/src/components/TextBlocksProvider.tsx:8
Methodconstructor
({ type, properties, content = [], parent, } : Block)
packages/core/src/interfaces/Block.interface.ts:17
FunctionhandleBlankSpacePress
()
packages/core/src/components/Editor.tsx:27
FunctionhandleChangeText
(text: string)
packages/core/src/hooks/useTextInput.ts:190
FunctionhandleDragEnd
()
packages/core/src/components/ScrollProvider.tsx:24
FunctionhandleDragStart
()
packages/core/src/components/ScrollProvider.tsx:20
FunctionhandleEmojiSelect
(emoji: string)
packages/blocks/src/PageBlock.tsx:97
FunctionhandleGhostInputOnLayout
()
packages/core/src/components/TextBlocksProvider.tsx:22
FunctionhandleKeyPress
({ nativeEvent })
packages/core/src/hooks/useDetectKeyPress.ts:14
FunctionhandleOnBlur
()
packages/core/src/hooks/useTextInput.ts:89
FunctionhandleOnDragEnd
()
packages/core/src/components/DragProvider.tsx:192
FunctionhandleOnDragStart
()
packages/core/src/components/DragProvider.tsx:149
FunctionhandleOnDragUpdate
(e: GestureStateChangeEvent<PanGestureHandlerEventPayload>)
packages/core/src/components/DragProvider.tsx:162
FunctionhandleOnFocus
()
packages/core/src/hooks/useTextInput.ts:186
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/CheckboxBlock.tsx:119
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/BulletBlock.tsx:117
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/CalloutBlock.tsx:133
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/TextBlock.tsx:109
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/PageBlock.tsx:217
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/HeaderBlock.tsx:116
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/SubSubHeaderBlock.tsx:113
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/SubHeaderBlock.tsx:114
FunctionhandleOnKeyPress
(event: { nativeEvent: { key: string; }; })
packages/blocks/src/QuoteBlock.tsx:108
FunctionhandleOnPress
()
packages/blocks/src/components/Footer/Footer.tsx:158
FunctionhandleOnScroll
(event: { nativeEvent: { contentOffset: { y: number; }; }; })
packages/core/src/components/ScrollProvider.tsx:28
FunctionhandleOpenKeyboard
()
packages/blocks/src/components/Footer/Footer.tsx:255
FunctionhandleRemoveBlock
()
packages/blocks/src/ImageBlock.tsx:53
FunctionhandleRemoveBlock
()
packages/blocks/src/CalloutBlock.tsx:203
FunctionhandleRemoveCover
()
packages/blocks/src/PageBlock.tsx:121
FunctionhandleRemoveIcon
()
packages/blocks/src/PageBlock.tsx:111
FunctionhandleSelectionChange
(event: { nativeEvent: { selection: { start: number; end: number; }; }; })
packages/core/src/hooks/useTextInput.ts:84
FunctionhandleSubmitEditing
()
packages/core/src/hooks/useTextInput.ts:145
FunctionhandleSubmitEditing
()
packages/blocks/src/CheckboxBlock.tsx:30
FunctionhandleSubmitEditing
()
packages/blocks/src/BulletBlock.tsx:28
FunctionhandleSubmitEditing
()
packages/blocks/src/CalloutBlock.tsx:44
next →1–100 of 118, ranked by callers