Davyd NRB
1 min readMay 22, 2020

--

Typescript doesn’t support XML namespaces like <fbt:param name=”name”>…</fbt:param>

To fix this problem I use undocumented components

import {FbtParam} from ‘fbt’

<FbtParam

// ts error: number incompatible with string

name={1}

>{…}</FbtParam>

Here are typings for fbt.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Davyd NRB
Davyd NRB

Written by Davyd NRB

React Native guru 🧘\ DevOps adjutant \ Linux lover ❤️

Responses (1)

Write a response