font not applied to all of my components
See original GitHub issuePackage | Version |
---|---|
@eva-design/eva | 1.4.0 |
@ui-kitten/components | 4.4.0 |
Hi I followed the tutorials on how to implement and add fonts, but the font does not apply to some components. For example, fonts do not apply to buttons.
app.tsx:
import React from 'react';
import { ApplicationProvider, IconRegistry } from '@ui-kitten/components';
import { EvaIconsPack } from '@ui-kitten/eva-icons';
import { mapping } from '@eva-design/eva';
import { default as customMapping } from './custom-mapping.json';
import { lightTheme, darkTheme } from './custom-theme';
import { AppNavigator } from './src/navigation/navigation.component';
import { ThemeContext } from './theme-context';
const App = () => {
return (
<React.Fragment>
<IconRegistry icons={EvaIconsPack} />
<ThemeContext.Provider value={{ theme, toggleTheme }}>
<ApplicationProvider
mapping={mapping}
theme={lightTheme}
customMapping={customMapping}
>
<AppNavigator />
</ApplicationProvider>
</ThemeContext.Provider>
</React.Fragment>
);
};
export default App;
custom-mapping.json:
{
"strict": {
"text-font-family": "bad_bold_college"
}
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18
Top Results From Across the Web
Font is loaded but not applicated - Stack Overflow
I use the Roboto font in my React project and I have a strange problem, when I access my application locally the font...
Read more >Basic Features: Font Optimization - Next.js
When a font function is called on a page of your site, it is not globally available and preloaded on all routes. Rather,...
Read more >Manage missing fonts – Figma Help Center
The missing fonts modal allows you to quickly update affected text layers. You can use this approach to select an alternative font to...
Read more >Custom Fonts Not Displaying On Front End - Elementor
Learn everything about Custom Fonts Not Displaying On Front End in this article from Elementor's Knowledge Base. Get Elementor tips & more.
Read more >Custom fonts - Expo Documentation
Learn about using custom fonts, supported font formats for each platform and ... a custom font, your best bet is to use the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just added an empty
so the mapping gets accepted within TS.
alternatively,