# React Native SDK - Styling text with custom fonts

**URL:** <https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300>\
**Category:** Technical Questions\
**Created:** [August 30, 2024, 8:53am UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300 "2024-08-30T08:53:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobias.akeblom](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobias.akeblom](https://forum.builder.io/u/tobias.akeblom)\
**Post date:** [August 30, 2024, 8:53am UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/1 "2024-08-30T08:53:29Z")

</div>

_Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank._

**Builder content link**

> **[Builder.io: Visual Development Platform](https://builder.io/content/fb2c9c304901408da41a47ac44dfd4ae)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually..

**Builder public api key**  
590f4251081d402c96f40922159dcfc5

**What are you trying to accomplish**  
Fetch section model into React Native application

**Screenshots or video link**

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/e/e899488f0c65c19c25e82ebf24f5291c88d2c693.jpeg)

**Code stack you are integrating Builder with**  
React Native

I can not get the text block to render with the correct font. We are using NotoSans as our primary font in the react native app. I have imported it as a custom font into builder but the when displaying the content the system font is rendered.

---

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [August 30, 2024, 12:37pm UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/2 "2024-08-30T12:37:50Z")

</div>

Hey @tobias.akeblom I tested the Nano font on your space on a [test page](https://builder.io/content/dfbca5b0da9e4986ab2e4f87422cbe5c/edit?activeDesignerTab=3&activeLocale=Default) I created. I was able to apply it to the text blocks added.

 ![Screenshot 2024-08-30 at 6.03.39 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/b/b9df96f5f70d669a7878a2d63e8febfacb3788ca.png)

Is there a specific Nano Sans font you are unable to use? Could you please share a screen recording or loom of the issue?

---

<div class="post-metadata">

**Author:** ![tobias.akeblom](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobias.akeblom](https://forum.builder.io/u/tobias.akeblom)\
**Post date:** [August 30, 2024, 3:24pm UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/3 "2024-08-30T15:24:03Z")

</div>

I am able to apply the font in the builder editor and there it looks like it working. But when I try to use the section in our react native application the correct font is not rendered.

---

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [September 2, 2024, 5:07am UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/4 "2024-09-02T05:07:11Z")

</div>

Hey, @tobias.akeblom, could you please give me a step-by-step procedure to replicate the issue? A screen recording would be very helpful.

---

<div class="post-metadata">

**Author:** ![tobias.akeblom](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobias.akeblom](https://forum.builder.io/u/tobias.akeblom)\
**Post date:** [September 11, 2024, 1:57pm UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/5 "2024-09-11T13:57:00Z")

</div>

Hey, sorry for the late answer. Had to work on other stuff for a while. Here you can see a screen shot of how the content is displayed in the React Native application compared to how it looks in the builder editor.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/5/5c5152db2d4807d7fb112906d45c5584dfa9e49e.jpeg)

This is how I am using it

Fetching entries:

```auto
fetchEntries({
      model: 'story',
      apiKey: key,
      options: { locale: builderLocale },
      cacheSeconds: INTERNAL_BUILD ? 0 : null,
      staleCacheSeconds: INTERNAL_BUILD ? 0 : null,
      userAttributes: { locale: builderLocale, urlPath: '/' },
    })

```

Displaying content  
`<Content apiKey={key} model="story" content={content} />`

---

<div class="post-metadata">

**Author:** ![tobias.akeblom](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobias.akeblom](https://forum.builder.io/u/tobias.akeblom)\
**Post date:** [September 11, 2024, 2:18pm UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/6 "2024-09-11T14:18:06Z")

</div>

Took a dive into the sdk-react-native package and found this block of code in

components/content/content.tsx

```auto

{TARGET !== "reactNative" ? (
          <ContentStyles
            nonce={props.nonce || ""}
            isNestedRender={props.isNestedRender}
            contentId={builderContextSignal.content?.id}
            cssCode={builderContextSignal.content?.data?.cssCode}
            customFonts={builderContextSignal.content?.data?.customFonts}
          />
        ) : null}

```

Seems like the customFonts does not being used if the target is React Native.

---

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [September 17, 2024, 1:11pm UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/7 "2024-09-17T13:11:05Z")

</div>

Hey @tobias.akeblom , I am happy to confirm that I was able to reproduce the issue you are experiencing thanks to the details and steps you have provided.

I will now discuss the issue internally in order to determine the next steps. Once I have further updates, I will get back to you.

In the meantime, Please feel free to reach out with any questions or further details you may have.

---

<div class="post-metadata">

**Author:** ![tobias.akeblom](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobias.akeblom](https://forum.builder.io/u/tobias.akeblom)\
**Post date:** [September 19, 2024, 6:36am UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/8 "2024-09-19T06:36:15Z")

</div>

Great news, thanks alot!

---

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [September 30, 2024, 10:36am UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/9 "2024-09-30T10:36:37Z")

</div>

Hey @tobias.akeblom after looking more into this, it turns out web custom fonts are, impossible in React Native. You need to manually install the font in the react native project, which means it would have to be done entirely by the developers integrating Builder.

Expo offers a way to remotely load web fonts. But this will only work on Expo codebases: [expo/packages/expo-font at sdk-51 · expo/expo · GitHub](https://github.com/expo/expo/tree/sdk-51/packages/expo-font#installation-in-bare-react-native-projects)

---

<div class="post-metadata">

**Author:** ![tobias.akeblom](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tobias.akeblom](https://forum.builder.io/u/tobias.akeblom)\
**Post date:** [September 30, 2024, 1:03pm UTC](https://forum.builder.io/t/react-native-sdk-styling-text-with-custom-fonts/6300/10 "2024-09-30T13:03:16Z")

</div>

That was what I suspected!
