Skip to content

Commit bd47672

Browse files
committed
feat: add Poppins font to assets & link it
1) Download Poppins font from Google Fonts & add it to assets/fonts dir. 2) Create react-native.config.js & add assets field. 3) Run npx react-native-asset.
1 parent 5ea06b1 commit bd47672

40 files changed

+112
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

assets/fonts/Poppins-Black.ttf

148 KB
Binary file not shown.

assets/fonts/Poppins-BlackItalic.ttf

168 KB
Binary file not shown.

assets/fonts/Poppins-Bold.ttf

150 KB
Binary file not shown.

assets/fonts/Poppins-BoldItalic.ttf

172 KB
Binary file not shown.

assets/fonts/Poppins-ExtraBold.ttf

149 KB
Binary file not shown.
170 KB
Binary file not shown.

assets/fonts/Poppins-ExtraLight.ttf

158 KB
Binary file not shown.
182 KB
Binary file not shown.

assets/fonts/Poppins-Italic.ttf

178 KB
Binary file not shown.

assets/fonts/Poppins-Light.ttf

156 KB
Binary file not shown.

assets/fonts/Poppins-LightItalic.ttf

180 KB
Binary file not shown.

assets/fonts/Poppins-Medium.ttf

153 KB
Binary file not shown.

assets/fonts/Poppins-MediumItalic.ttf

176 KB
Binary file not shown.

assets/fonts/Poppins-Regular.ttf

155 KB
Binary file not shown.

assets/fonts/Poppins-SemiBold.ttf

152 KB
Binary file not shown.
174 KB
Binary file not shown.

assets/fonts/Poppins-Thin.ttf

158 KB
Binary file not shown.

assets/fonts/Poppins-ThinItalic.ttf

183 KB
Binary file not shown.

ios/CMK.xcodeproj/project.pbxproj

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@
1414
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1515
7699B88040F8A987B510C191 /* libPods-CMK-CMKTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-CMK-CMKTests.a */; };
1616
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
17+
6BB8FF1952674B45B6722DA4 /* Poppins-Black.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EC27266831CF4CBEA09D442F /* Poppins-Black.ttf */; };
18+
DFA64B9FA4714B659D24AF04 /* Poppins-BlackItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CB4F0C8630414119942123B8 /* Poppins-BlackItalic.ttf */; };
19+
8EEE314F92F346C08E9D2E74 /* Poppins-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A00452AF576E4AD4B3B6FD67 /* Poppins-Bold.ttf */; };
20+
79DBEFDB75E74C949D808060 /* Poppins-BoldItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 40CE59783CB246658C9DB3C3 /* Poppins-BoldItalic.ttf */; };
21+
C7A20132B6804AAE9A676660 /* Poppins-ExtraBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CE193D6924B64E16A9AAD230 /* Poppins-ExtraBold.ttf */; };
22+
42FE204F8AB54085B3BF4F1B /* Poppins-ExtraBoldItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3A821190D1604D19BEF6B827 /* Poppins-ExtraBoldItalic.ttf */; };
23+
E944FF8AAE1F4978BCA83A1B /* Poppins-ExtraLight.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D73E7C52194F4C3AA3B8BE52 /* Poppins-ExtraLight.ttf */; };
24+
8B01C19D7DEC47D4BECC40D2 /* Poppins-ExtraLightItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 71502F2800904F9FAC0EEFBF /* Poppins-ExtraLightItalic.ttf */; };
25+
6BD6D506ED444EF6B4FCBAAC /* Poppins-Italic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0D8569D7284E4101AB23856D /* Poppins-Italic.ttf */; };
26+
33EBA566F2904643A8622F20 /* Poppins-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FD42DFC96D1646F7B9348301 /* Poppins-Light.ttf */; };
27+
E62E263507454B998C1098C0 /* Poppins-LightItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B817DBD2B7E948BEA8E76ABE /* Poppins-LightItalic.ttf */; };
28+
6EBA8D09F9714910B810F566 /* Poppins-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A6A7341E3AE54F1FAD1031EF /* Poppins-Medium.ttf */; };
29+
AD245151B6ED48838C5DE9A4 /* Poppins-MediumItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D3D153E4956E41C3AE8F974C /* Poppins-MediumItalic.ttf */; };
30+
B10A5B25985F499B8D9CA4CE /* Poppins-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 604C3A244D1145D9A3FC796B /* Poppins-Regular.ttf */; };
31+
5B3F280553FA4AB29F7D4352 /* Poppins-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8D894EEE2F8F43BDAA3E1C04 /* Poppins-SemiBold.ttf */; };
32+
415A49823DE144909728C0FA /* Poppins-SemiBoldItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 740CE584234140EFABAB699B /* Poppins-SemiBoldItalic.ttf */; };
33+
362562D7377348A981C379AE /* Poppins-Thin.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 26EDCFC8FD1C461BBFA31B54 /* Poppins-Thin.ttf */; };
34+
93C6AA858F8A4ABFB9BE7BF7 /* Poppins-ThinItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6B16F9C2B2864DEB86553740 /* Poppins-ThinItalic.ttf */; };
1735
/* End PBXBuildFile section */
1836

1937
/* Begin PBXContainerItemProxy section */
@@ -44,6 +62,24 @@
4462
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = CMK/LaunchScreen.storyboard; sourceTree = "<group>"; };
4563
89C6BE57DB24E9ADA2F236DE /* Pods-CMK-CMKTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CMK-CMKTests.release.xcconfig"; path = "Target Support Files/Pods-CMK-CMKTests/Pods-CMK-CMKTests.release.xcconfig"; sourceTree = "<group>"; };
4664
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
65+
EC27266831CF4CBEA09D442F /* Poppins-Black.ttf */ = {isa = PBXFileReference; name = "Poppins-Black.ttf"; path = "../assets/fonts/Poppins-Black.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
66+
CB4F0C8630414119942123B8 /* Poppins-BlackItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-BlackItalic.ttf"; path = "../assets/fonts/Poppins-BlackItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
67+
A00452AF576E4AD4B3B6FD67 /* Poppins-Bold.ttf */ = {isa = PBXFileReference; name = "Poppins-Bold.ttf"; path = "../assets/fonts/Poppins-Bold.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
68+
40CE59783CB246658C9DB3C3 /* Poppins-BoldItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-BoldItalic.ttf"; path = "../assets/fonts/Poppins-BoldItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
69+
CE193D6924B64E16A9AAD230 /* Poppins-ExtraBold.ttf */ = {isa = PBXFileReference; name = "Poppins-ExtraBold.ttf"; path = "../assets/fonts/Poppins-ExtraBold.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
70+
3A821190D1604D19BEF6B827 /* Poppins-ExtraBoldItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-ExtraBoldItalic.ttf"; path = "../assets/fonts/Poppins-ExtraBoldItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
71+
D73E7C52194F4C3AA3B8BE52 /* Poppins-ExtraLight.ttf */ = {isa = PBXFileReference; name = "Poppins-ExtraLight.ttf"; path = "../assets/fonts/Poppins-ExtraLight.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
72+
71502F2800904F9FAC0EEFBF /* Poppins-ExtraLightItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-ExtraLightItalic.ttf"; path = "../assets/fonts/Poppins-ExtraLightItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
73+
0D8569D7284E4101AB23856D /* Poppins-Italic.ttf */ = {isa = PBXFileReference; name = "Poppins-Italic.ttf"; path = "../assets/fonts/Poppins-Italic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
74+
FD42DFC96D1646F7B9348301 /* Poppins-Light.ttf */ = {isa = PBXFileReference; name = "Poppins-Light.ttf"; path = "../assets/fonts/Poppins-Light.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
75+
B817DBD2B7E948BEA8E76ABE /* Poppins-LightItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-LightItalic.ttf"; path = "../assets/fonts/Poppins-LightItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
76+
A6A7341E3AE54F1FAD1031EF /* Poppins-Medium.ttf */ = {isa = PBXFileReference; name = "Poppins-Medium.ttf"; path = "../assets/fonts/Poppins-Medium.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
77+
D3D153E4956E41C3AE8F974C /* Poppins-MediumItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-MediumItalic.ttf"; path = "../assets/fonts/Poppins-MediumItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
78+
604C3A244D1145D9A3FC796B /* Poppins-Regular.ttf */ = {isa = PBXFileReference; name = "Poppins-Regular.ttf"; path = "../assets/fonts/Poppins-Regular.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
79+
8D894EEE2F8F43BDAA3E1C04 /* Poppins-SemiBold.ttf */ = {isa = PBXFileReference; name = "Poppins-SemiBold.ttf"; path = "../assets/fonts/Poppins-SemiBold.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
80+
740CE584234140EFABAB699B /* Poppins-SemiBoldItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-SemiBoldItalic.ttf"; path = "../assets/fonts/Poppins-SemiBoldItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
81+
26EDCFC8FD1C461BBFA31B54 /* Poppins-Thin.ttf */ = {isa = PBXFileReference; name = "Poppins-Thin.ttf"; path = "../assets/fonts/Poppins-Thin.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
82+
6B16F9C2B2864DEB86553740 /* Poppins-ThinItalic.ttf */ = {isa = PBXFileReference; name = "Poppins-ThinItalic.ttf"; path = "../assets/fonts/Poppins-ThinItalic.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
4783
/* End PBXFileReference section */
4884

4985
/* Begin PBXFrameworksBuildPhase section */
@@ -122,6 +158,7 @@
122158
83CBBA001A601CBA00E9B192 /* Products */,
123159
2D16E6871FA4F8E400B85C8A /* Frameworks */,
124160
BBD78D7AC51CEA395F1C20DB /* Pods */,
161+
B092A5BAF8F84919B0A358E3 /* Resources */,
125162
);
126163
indentWidth = 2;
127164
sourceTree = "<group>";
@@ -148,6 +185,32 @@
148185
path = Pods;
149186
sourceTree = "<group>";
150187
};
188+
B092A5BAF8F84919B0A358E3 /* Resources */ = {
189+
isa = "PBXGroup";
190+
children = (
191+
EC27266831CF4CBEA09D442F /* Poppins-Black.ttf */,
192+
CB4F0C8630414119942123B8 /* Poppins-BlackItalic.ttf */,
193+
A00452AF576E4AD4B3B6FD67 /* Poppins-Bold.ttf */,
194+
40CE59783CB246658C9DB3C3 /* Poppins-BoldItalic.ttf */,
195+
CE193D6924B64E16A9AAD230 /* Poppins-ExtraBold.ttf */,
196+
3A821190D1604D19BEF6B827 /* Poppins-ExtraBoldItalic.ttf */,
197+
D73E7C52194F4C3AA3B8BE52 /* Poppins-ExtraLight.ttf */,
198+
71502F2800904F9FAC0EEFBF /* Poppins-ExtraLightItalic.ttf */,
199+
0D8569D7284E4101AB23856D /* Poppins-Italic.ttf */,
200+
FD42DFC96D1646F7B9348301 /* Poppins-Light.ttf */,
201+
B817DBD2B7E948BEA8E76ABE /* Poppins-LightItalic.ttf */,
202+
A6A7341E3AE54F1FAD1031EF /* Poppins-Medium.ttf */,
203+
D3D153E4956E41C3AE8F974C /* Poppins-MediumItalic.ttf */,
204+
604C3A244D1145D9A3FC796B /* Poppins-Regular.ttf */,
205+
8D894EEE2F8F43BDAA3E1C04 /* Poppins-SemiBold.ttf */,
206+
740CE584234140EFABAB699B /* Poppins-SemiBoldItalic.ttf */,
207+
26EDCFC8FD1C461BBFA31B54 /* Poppins-Thin.ttf */,
208+
6B16F9C2B2864DEB86553740 /* Poppins-ThinItalic.ttf */,
209+
);
210+
name = Resources;
211+
sourceTree = "<group>";
212+
path = "";
213+
};
151214
/* End PBXGroup section */
152215

153216
/* Begin PBXNativeTarget section */
@@ -244,6 +307,24 @@
244307
files = (
245308
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
246309
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
310+
6BB8FF1952674B45B6722DA4 /* Poppins-Black.ttf in Resources */,
311+
DFA64B9FA4714B659D24AF04 /* Poppins-BlackItalic.ttf in Resources */,
312+
8EEE314F92F346C08E9D2E74 /* Poppins-Bold.ttf in Resources */,
313+
79DBEFDB75E74C949D808060 /* Poppins-BoldItalic.ttf in Resources */,
314+
C7A20132B6804AAE9A676660 /* Poppins-ExtraBold.ttf in Resources */,
315+
42FE204F8AB54085B3BF4F1B /* Poppins-ExtraBoldItalic.ttf in Resources */,
316+
E944FF8AAE1F4978BCA83A1B /* Poppins-ExtraLight.ttf in Resources */,
317+
8B01C19D7DEC47D4BECC40D2 /* Poppins-ExtraLightItalic.ttf in Resources */,
318+
6BD6D506ED444EF6B4FCBAAC /* Poppins-Italic.ttf in Resources */,
319+
33EBA566F2904643A8622F20 /* Poppins-Light.ttf in Resources */,
320+
E62E263507454B998C1098C0 /* Poppins-LightItalic.ttf in Resources */,
321+
6EBA8D09F9714910B810F566 /* Poppins-Medium.ttf in Resources */,
322+
AD245151B6ED48838C5DE9A4 /* Poppins-MediumItalic.ttf in Resources */,
323+
B10A5B25985F499B8D9CA4CE /* Poppins-Regular.ttf in Resources */,
324+
5B3F280553FA4AB29F7D4352 /* Poppins-SemiBold.ttf in Resources */,
325+
415A49823DE144909728C0FA /* Poppins-SemiBoldItalic.ttf in Resources */,
326+
362562D7377348A981C379AE /* Poppins-Thin.ttf in Resources */,
327+
93C6AA858F8A4ABFB9BE7BF7 /* Poppins-ThinItalic.ttf in Resources */,
247328
);
248329
runOnlyForDeploymentPostprocessing = 0;
249330
};

ios/CMK/Info.plist

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</dict>
3737
</dict>
3838
<key>NSLocationWhenInUseUsageDescription</key>
39-
<string></string>
39+
<string/>
4040
<key>UILaunchStoryboardName</key>
4141
<string>LaunchScreen</string>
4242
<key>UIRequiredDeviceCapabilities</key>
@@ -51,5 +51,26 @@
5151
</array>
5252
<key>UIViewControllerBasedStatusBarAppearance</key>
5353
<false/>
54+
<key>UIAppFonts</key>
55+
<array>
56+
<string>Poppins-Black.ttf</string>
57+
<string>Poppins-BlackItalic.ttf</string>
58+
<string>Poppins-Bold.ttf</string>
59+
<string>Poppins-BoldItalic.ttf</string>
60+
<string>Poppins-ExtraBold.ttf</string>
61+
<string>Poppins-ExtraBoldItalic.ttf</string>
62+
<string>Poppins-ExtraLight.ttf</string>
63+
<string>Poppins-ExtraLightItalic.ttf</string>
64+
<string>Poppins-Italic.ttf</string>
65+
<string>Poppins-Light.ttf</string>
66+
<string>Poppins-LightItalic.ttf</string>
67+
<string>Poppins-Medium.ttf</string>
68+
<string>Poppins-MediumItalic.ttf</string>
69+
<string>Poppins-Regular.ttf</string>
70+
<string>Poppins-SemiBold.ttf</string>
71+
<string>Poppins-SemiBoldItalic.ttf</string>
72+
<string>Poppins-Thin.ttf</string>
73+
<string>Poppins-ThinItalic.ttf</string>
74+
</array>
5475
</dict>
5576
</plist>

react-native.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
project: {
3+
ios: {},
4+
android: {},
5+
},
6+
assets: ['./assets/fonts/'],
7+
};

src/screens/LogIn.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ const styles = StyleSheet.create({
2121
logoText: {
2222
fontSize: 20,
2323
color: '#3F8CFF',
24+
fontFamily: 'Poppins-Regular',
25+
fontWeight: '400',
2426
},
2527
});

0 commit comments

Comments
 (0)