Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7861642
load font using useFont
Rohit3523 Feb 20, 2026
bb93bbd
suggested by code rabbit
Rohit3523 Feb 20, 2026
4e36d8b
log font error
Rohit3523 Feb 20, 2026
c654eab
Merge branch 'develop' into load-custom-font
julio-rocketchat Mar 11, 2026
c46ac98
Added package
Rohit3523 Mar 18, 2026
e9fa212
move fontLoad error inside useEffect
Rohit3523 Mar 18, 2026
4a2a58a
chore: format code and fix lint issues
Rohit3523 Mar 18, 2026
81843fa
Merge branch 'develop' into load-custom-font
Rohit3523 Mar 18, 2026
c36c4f2
chore: format code and fix lint issues
Rohit3523 Mar 18, 2026
1329729
Merge branch 'develop' into load-custom-font
Rohit3523 Apr 7, 2026
f30a6cc
expo-font patch
Rohit3523 Apr 13, 2026
fdcf3dc
revert changes
Rohit3523 Apr 13, 2026
9f73acc
more cleanup
Rohit3523 Apr 13, 2026
e1e7557
Merge branch 'develop' into load-custom-font
Rohit3523 Apr 13, 2026
73d355b
expo-asset
Rohit3523 Apr 13, 2026
c57ff89
patch fix
Rohit3523 Apr 13, 2026
3b4fef4
Merge branch 'load-custom-font' of https://github.com/RocketChat/Rock…
Rohit3523 Apr 13, 2026
f5d3d06
patch update
Rohit3523 Apr 14, 2026
6b5a5bb
Merge branch 'develop' into load-custom-font
Rohit3523 Apr 14, 2026
005fd57
using ReactContextLost instead of AppContextLost
Rohit3523 Apr 15, 2026
eca8c0d
comment update
Rohit3523 Apr 15, 2026
6b35d34
Merge branch 'develop' into load-custom-font
Rohit3523 Apr 15, 2026
4b7df87
rerun ci
Rohit3523 Apr 15, 2026
bc6dc98
revert
Rohit3523 Apr 15, 2026
bc5134e
Merge branch 'load-custom-font' of https://github.com/RocketChat/Rock…
Rohit3523 Apr 15, 2026
330a68b
Limit patch for android 8 and less only
Rohit3523 Apr 15, 2026
1dd2522
patch fix...
Rohit3523 Apr 15, 2026
8f00c97
rerun fresh CI
Rohit3523 Apr 15, 2026
b0450c4
revert
Rohit3523 Apr 15, 2026
243db90
force refresh
Rohit3523 Apr 17, 2026
2ceef55
Merge branch 'develop' into load-custom-font
Rohit3523 Apr 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/AppContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useContext, memo, useEffect } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { connect } from 'react-redux';
import { useFonts } from 'expo-font';
Comment thread
Rohit3523 marked this conversation as resolved.
Outdated

import type { SetUsernameStackParamList, StackParamList } from './definitions/navigationTypes';
import Navigation from './lib/navigation/appNavigation';
Expand Down Expand Up @@ -43,7 +44,11 @@ const App = memo(({ root, isMasterDetail }: { root: string; isMasterDetail: bool
}
}, [root]);

if (!root) {
const [loaded, fontError] = useFonts({
custom: require('./static/fonts/custom.ttf')
});

if ((!loaded && !fontError) || !root) {
return null;
}

Expand Down
Binary file added app/static/fonts/custom.ttf
Binary file not shown.
Loading