Skip to content

Instantly share code, notes, and snippets.

@fabOnReact
fabOnReact / nested_text_spans_recreated_on_every_render.md
Last active April 15, 2025 12:46
Nested Text Spans recreated on re-render

Updating any property of a Nested Text, triggers a full update of all the properties. The consequence is that multiple spans are added to the TextView to display the same duplicate property, on every -re-render. This issue is related to Asana Tasks View Manager prop setters called for unchanged values. and notion task Avoid using react native wrapper components for text & view and use native components directly.

The redundant update process can lead to performance issues or unexpected behavior due to the unnecessary creation of spans.

CLICK TO OPEN SOURCECODE OF THE EXAMPLE

@fabOnReact
fabOnReact / .ctags
Created August 19, 2020 20:26
ctags for kotlin, javascript and typescript
--langdef=typescript
--langdef=kotlin
--langmap=typescript:.ts.tsx
--langmap=kotlin:.kt.kts
--exclude=node_modules
--regex-typescript=/^[ \t]*(export[ \t]+([a-z]+[ \t]+)?)?class[ \t]+([a-zA-Z0-9_$]+)/\3/c,classes/
--regex-typescript=/^[ \t]*(declare[ \t]+)?namespace[ \t]+([a-zA-Z0-9_$]+)/\2/c,modules/
--regex-typescript=/^[ \t]*(export[ \t]+)?module[ \t]+([a-zA-Z0-9_$]+)/\2/n,modules/
--regex-typescript=/^[ \t]*(export[ \t]+)?(default[ \t]+)?(async[ \t]+)?function(\*)?[ \t]+([a-zA-Z0-9_$]+)/\5/f,functions/
--regex-typescript=/^[ \t]*export[ \t]+(var|let|const)[ \t]+([a-zA-Z0-9_$]+)/\2/v,variables/