Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add Roboto Medium font on android

ammarahm-ed224973932d8b
diff --git a/apps/mobile/android/app/src/main/assets/fonts/Roboto-Medium.ttf b/apps/mobile/android/app/src/main/assets/fonts/Roboto-Medium.ttf
new file mode 100644
index 000000000..e89b0b79a
Binary files /dev/null and b/apps/mobile/android/app/src/main/assets/fonts/Roboto-Medium.ttf differ
diff --git a/apps/mobile/src/components/Typography/Heading.js b/apps/mobile/src/components/Typography/Heading.js
index de1a5fb15..41b589a6c 100644
--- a/apps/mobile/src/components/Typography/Heading.js
+++ b/apps/mobile/src/components/Typography/Heading.js
@@ -1,4 +1,5 @@
import React from 'react';
+import { Platform } from 'react-native';
import { Text } from 'react-native';
import { useTracked } from '../../provider';
import { SIZE } from '../../utils/SizeUtils';
@@ -27,7 +28,8 @@ const Heading = ({color, size = SIZE.xl, style, ...restProps}) => {
{
fontSize: size || SIZE.xl,
color: color || colors.heading,
- fontWeight: 'bold',
+ fontFamily:Platform.OS === "android" ? "Roboto-Medium" : null,
+ fontWeight:Platform.OS === "ios" ? "bold" : null
},
style,
]}></Text>