{"action":"created","issue":{"url":"https://api.github.com/repos/expo/expo/issues/1770","repository_url":"https://api.github.com/repos/expo/expo","labels_url":"https://api.github.com/repos/expo/expo/issues/1770/labels{/name}","comments_url":"https://api.github.com/repos/expo/expo/issues/1770/comments","events_url":"https://api.github.com/repos/expo/expo/issues/1770/events","html_url":"https://github.com/expo/expo/issues/1770","id":324403395,"number":1770,"title":"Custom fonts not loading expo + react-native init","user":{"login":"sourcebit-apps","id":24809846,"avatar_url":"https://avatars3.githubusercontent.com/u/24809846?v=4","gravatar_id":"","url":"https://api.github.com/users/sourcebit-apps","html_url":"https://github.com/sourcebit-apps","followers_url":"https://api.github.com/users/sourcebit-apps/followers","following_url":"https://api.github.com/users/sourcebit-apps/following{/other_user}","gists_url":"https://api.github.com/users/sourcebit-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcebit-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcebit-apps/subscriptions","organizations_url":"https://api.github.com/users/sourcebit-apps/orgs","repos_url":"https://api.github.com/users/sourcebit-apps/repos","events_url":"https://api.github.com/users/sourcebit-apps/events{/privacy}","received_events_url":"https://api.github.com/users/sourcebit-apps/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-18T13:06:45Z","updated_at":"2018-05-20T04:03:54Z","closed_at":"2018-05-18T17:16:59Z","author_association":"NONE","body":"# READ THIS FIRST, PLEASE!\r\n\r\nThe App Store version of the Expo iOS client recently had to remove the QR code scanner from the app. If you intend to load your app on a physical iOS device, please use `exp send` with exp, the “Send” button with XDE, or the \"s\" hotkey with create-react-native-app to send your project development URL to your phone by SMS or email.\r\n\r\nRead more at https://blog.expo.io/upcoming-limitations-to-ios-expo-client-8076d01aee1a. We apologize for any inconvenience this may cause you!\r\n\r\n<!--\r\n  Is this a feature request? Please vote or post it at https://expo.canny.io instead.\r\n-->\r\n\r\n### Attention\r\n\r\n  If you are unable to create a reproducible Snack example that demonstrates the bug/issue,\r\n  please first post in our forums at https://forums.expo.io/ before opening an issue here! \r\n  (Unless the bug/issue pertains to a standalone, non-detached build)\r\n  \r\n### Environment\r\n\r\n<!-- In your terminal run `exp diagnostics` and paste the output here. -->\r\nEnvironment:\r\n  OS: macOS Sierra 10.12.6\r\n  Node: 8.9.1\r\n  Yarn: Not Found\r\n  npm: 6.0.1\r\n  Watchman: 4.7.0\r\n  Xcode: Xcode 9.0 Build version 9A235\r\n  Android Studio: Not Found\r\n\r\nPackages: (wanted => installed)\r\n  expo: ^27.0.1 => 27.0.1\r\n  react: 16.3.1 => 16.3.1\r\n  react-native: 0.55.4 => 0.55.4\r\n\r\nDiagnostics report:\r\n  https://exp-xde-diagnostics.s3.amazonaws.com/sbapps-e824e82a-4922-4552-880b-09a9e35a6d52.tar.gz\r\n\r\n<!-- Please also let us know about your app's target (iOS, Android, Client, Standalone, ExpoKit) -->\r\n\r\n### Steps to Reproduce\r\n\r\n<!--\r\n  How would you describe your issue to someone who doesn’t know you or your project?\r\n  Try to write a sequence of steps that anybody can repeat to see the issue.\r\n  Be specific! If the bug cannot be reproduced, your issue may be closed.\r\n-->\r\n\r\n(Write your steps here:)\r\n\r\nI have a react native project which I initialised with react-native init 'Sample Project' and installed expo with npm i exp. For the custom fonts I installed them with react-native link. Now when I refer to the font in my js file like below:\r\n```\r\ninput: {\r\n        fontFamily: \"RobotoCondensed-Light\",\r\n        fontWeight: \"300\", //light\r\n        fontStyle: 'normal',\r\n        fontSize: 16,\r\n        width: DEVICE_WIDTH - 60,\r\n        textAlign: 'left',\r\n        paddingLeft: 2,\r\n        textAlignVertical: 'center',\r\n        marginTop: 30,\r\n        height: 40,\r\n    },\r\n```\r\nThe problem is I'm not able to see the font on my Android device. If I do any change in fontFamily string like fontFamily: \"junk value\", still it works and doesn't give any error. Not sure, what is happening?\r\n\r\nIm running the code by below commands:-\r\n\r\nexp start\r\nnpm start\r\nDo I need to run react-native run android command to see the changes? If yes, then how can I use expo to the app on my device wirelessly?\r\n\r\nThanks for the help. Appreciate your response.\r\n\r\n### Expected Behavior\r\n\r\n<!--\r\n  How did you expect your project to behave?\r\n  It’s fine if you’re not sure your understanding is correct.\r\n  Just write down what you thought would happen.\r\n-->\r\nCustom fonts should load in the app\r\n\r\n(Write what you thought would happen.)\r\n\r\n### Actual Behavior\r\n\r\n<!--\r\n  Did something go wrong?\r\n  Is something broken, or not behaving as you expected?\r\n  Describe this section in detail, and attach screenshots if possible.\r\n  Don't just say \"it doesn't work\"!\r\n-->\r\n\r\nCustom fonts not loading in the app\r\n(Write what happened. Add screenshots!)\r\n\r\n### Reproducible Demo\r\n\r\n<!--\r\n  Please share a project that reproduces the issue.\r\n  There are two ways to do it:\r\n\r\n    * Create a new app using https://snack.expo.io/ and try to reproduce the issue in it.\r\n      This is useful if you roughly know where the problem is, or can’t share the real code.\r\n\r\n    * Or, copy your app and remove things until you’re left with the minimal reproducible demo.\r\n      This is useful for finding the root cause. You may then optionally create a Snack.\r\n\r\n  This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve\r\n  Once you’re done, copy and paste the link to the Snack or a public GitHub repository below:\r\n-->\r\n\r\n(Paste the link to an example project and exact instructions to reproduce the issue.)\r\n\r\n<!--\r\n  What happens if you skip this step?\r\n\r\n  Someone will read your bug report, and maybe will be able to help you,\r\n  but it’s unlikely that it will get much attention from the team. Eventually,\r\n  the issue will likely get closed in favor of issues that have reproducible demos.\r\n\r\n  Please remember that:\r\n\r\n    * Issues without reproducible demos have a very low priority.\r\n    * The person fixing the bug would have to do that anyway. Please be respectful of their time.\r\n    * You might figure out the issues yourself as you work on extracting it.\r\n\r\n  Thanks for helping us help you!\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/expo/expo/issues/comments/390456143","html_url":"https://github.com/expo/expo/issues/1770#issuecomment-390456143","issue_url":"https://api.github.com/repos/expo/expo/issues/1770","id":390456143,"user":{"login":"sourcebit-apps","id":24809846,"avatar_url":"https://avatars3.githubusercontent.com/u/24809846?v=4","gravatar_id":"","url":"https://api.github.com/users/sourcebit-apps","html_url":"https://github.com/sourcebit-apps","followers_url":"https://api.github.com/users/sourcebit-apps/followers","following_url":"https://api.github.com/users/sourcebit-apps/following{/other_user}","gists_url":"https://api.github.com/users/sourcebit-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcebit-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcebit-apps/subscriptions","organizations_url":"https://api.github.com/users/sourcebit-apps/orgs","repos_url":"https://api.github.com/users/sourcebit-apps/repos","events_url":"https://api.github.com/users/sourcebit-apps/events{/privacy}","received_events_url":"https://api.github.com/users/sourcebit-apps/received_events","type":"User","site_admin":false},"created_at":"2018-05-20T04:03:54Z","updated_at":"2018-05-20T04:03:54Z","author_association":"NONE","body":"Hi Eric,\n\nThanks for the help.I was able to load the fonts.\n\nOn Sat, May 19, 2018, 10:18 AM Eric Samelson <notifications@github.com>\nwrote:\n\n> @sourcebit-apps <https://github.com/sourcebit-apps> you can detach to\n> ExpoKit <https://docs.expo.io/versions/v27.0.0/expokit/detach> which will\n> allow you to add your own native modules & native code while also keeping\n> all of Expo's native modules, including font loading.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/expo/expo/issues/1770#issuecomment-390378793>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AXqRdn5hu6Rv4YxWNbe35dhJEvxS9D7sks5tz6QggaJpZM4UEtAA>\n> .\n>\n"}}
{"actor":{"display_login":"sourcebit-apps"}}