From a8647342d8aaf3d823a050586d46af673e8f4244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Grybo=C5=9B?= Date: Thu, 23 Aug 2018 07:05:09 +0000 Subject: [PATCH] expo-font module (#2989) * expo-font module * [expo-font-interface] Move FontManager interface to expo-font-interface * [expo-font-interface] Remove obsolete dependencies from expo-font-interface * [expo-font] Refactor interfaces and logic flow * [expo-font-interface] Rename EXFontX to EXFontXInterface * [expo-react-native-adapter] Add a small explanation to EXReactFontManager * [expo-font] Minor fixes * [home] Publish new Expo Home * [jest-expo] fix mock-generator and update mocks * [font] fix client tests and rename module ExponentFontLoader -> ExpoFontLoader fbshipit-source-id: 5fbf23a --- createIconSet.js | 2 +- createIconSetFromIcoMoon.js | 2 +- package.json | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/createIconSet.js b/createIconSet.js index 092f754..7942723 100644 --- a/createIconSet.js +++ b/createIconSet.js @@ -1,6 +1,6 @@ import React from 'react'; import { Text } from 'react-native'; -import { Font } from 'expo'; +import { Font } from 'expo-font'; import createIconSet from './vendor/react-native-vector-icons/lib/create-icon-set'; import createIconButtonComponent from './vendor/react-native-vector-icons/lib/icon-button'; diff --git a/createIconSetFromIcoMoon.js b/createIconSetFromIcoMoon.js index 487f900..84812d9 100644 --- a/createIconSetFromIcoMoon.js +++ b/createIconSetFromIcoMoon.js @@ -1,4 +1,4 @@ -import { Font } from 'expo'; +import { Font } from 'expo-font'; import createIconSetFromIcoMoon from './vendor/react-native-vector-icons/lib/create-icon-set-from-icomoon'; export default function(config, expoFontName, expoAssetId) { diff --git a/package.json b/package.json index 762b76c..af21307 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "homepage": "https://expo.github.io/vector-icons", "dependencies": { "lodash": "^4.17.4", - "react-native-vector-icons": "4.5.0" + "react-native-vector-icons": "4.5.0", + "expo-font": "^1.0.0" }, "devDependencies": {} }