expo

Strange react-native state behaviour while using socket io

我只是一个虾纸丫 提交于 2020-12-26 05:01:11
问题 Hi currently im trying to create a simple group chat apps. when i use this on useEffect useEffect(() => { // i want to fetch data from the backend first and concat it with the msg that will be send during the chat handleGetGroupMessage(); let socket = io(socketUrl); socket.on("GroupChat", (msg) => { console.log("this is the chat messages", chatMessages); setChatMessages(chatMessages.concat(msg)); }); }, []); when the apps is loaded all the messages from my backend was stored in that state.

Strange react-native state behaviour while using socket io

最后都变了- 提交于 2020-12-26 05:01:04
问题 Hi currently im trying to create a simple group chat apps. when i use this on useEffect useEffect(() => { // i want to fetch data from the backend first and concat it with the msg that will be send during the chat handleGetGroupMessage(); let socket = io(socketUrl); socket.on("GroupChat", (msg) => { console.log("this is the chat messages", chatMessages); setChatMessages(chatMessages.concat(msg)); }); }, []); when the apps is loaded all the messages from my backend was stored in that state.

ERROR ITMS-90596: “Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/.bundle/Assets.car' can't be processed.”

吃可爱长大的小学妹 提交于 2020-12-15 09:15:54
问题 Problem summary : I would like to submit an app to the Apple App store (TestFlight). I am using Transporter v1.1 to submit the app. I am getting the following error in Transporter during the submission process. Please note that I am not using Xcode in this process. Actual result: ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car' can't be processed. Rebuild your app, and all included extensions and frameworks,

ERROR ITMS-90596: “Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/.bundle/Assets.car' can't be processed.”

情到浓时终转凉″ 提交于 2020-12-15 09:15:31
问题 Problem summary : I would like to submit an app to the Apple App store (TestFlight). I am using Transporter v1.1 to submit the app. I am getting the following error in Transporter during the submission process. Please note that I am not using Xcode in this process. Actual result: ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car' can't be processed. Rebuild your app, and all included extensions and frameworks,

How to read local file in ios devices by using XmlHttpRequest in expo?

早过忘川 提交于 2020-12-15 07:04:08
问题 I've been dealing with this problem for 3 days. Here is the thing, in iOS I cannot read file by using XmlHttpRequest . My code is from expo's firebase-storage-upload-example (link). I've added this code to my app.json: { "expo": { ...somestuf "ios": { "infoPlist": { "NSFaceIDUsageDescription": "This app uses the camera to scan barcodes on event tickets.", "NSAppTransportSecurity": { "NSAllowsArbitraryLoads": true } } } } In android everything works fine. In iOS I think it's a permission kinda

Loading custom fonts in React Native is giving error

若如初见. 提交于 2020-12-15 06:08:00
问题 fontFamily "pro" is not a system font and has not been loaded through Font.loadAsync. If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system. - If this is a custom font, be sure to load it with Font.loadAsync. But if I dismiss the error I see that the font has loaded. Here is my code: export default class App extends Component { constructor(props) { super(props); this.state = {loading: true}; } async

Loading custom fonts in React Native is giving error

梦想与她 提交于 2020-12-15 06:04:39
问题 fontFamily "pro" is not a system font and has not been loaded through Font.loadAsync. If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system. - If this is a custom font, be sure to load it with Font.loadAsync. But if I dismiss the error I see that the font has loaded. Here is my code: export default class App extends Component { constructor(props) { super(props); this.state = {loading: true}; } async

React native fast refresh ALWAYS reload app

假如想象 提交于 2020-12-15 05:20:49
问题 According to React-native docs, fast-refresh will fully reload the entire app only if you edit a file that's imported by modules outside of the React tree Now, Somewhere up the road the app started fully reload after every change in any module(even though apparently I did not change module that imported by modules outside React tree). so I tried to comment out anything in the main App.js module, but still, after save in the App.js module the fast refresh made the app fully reload. The

Endless loop on installing Expo CLI

此生再无相见时 提交于 2020-12-13 18:00:59
问题 I try to execute command npm start on terminal on my Mac. It prompts me to install Expo CLI , I say Y, wait until installation to finish, then I end up in an endless loop where it keeps prompting me to install Expo CLI again: This command requires Expo CLI. Do you want to install it globally [Y/n]? y Installing the package 'expo-cli'... Expo CLI installed. You can run `expo --help` for instructions. This command requires Expo CLI. Do you want to install it globally [Y/n]? Any ideas why I'm

After upgrading to expo SDK 37.0.0 my stackNavigator header doubled in height

倾然丶 夕夏残阳落幕 提交于 2020-12-13 11:25:06
问题 "expo": "^37.0.0", "react-dom": "16.9.0", "react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz", "react-navigation": "^4.0.9", "react-navigation-drawer": "^2.3.3", "react-navigation-stack": "^1.10.3", "react-navigation-tabs": "^2.6.0" I am facing very weird issue. My stackNavigator header is too high. After upgrading to expo 37.0.0 my header bar doubled in height and I cannot return it to normal. Here is my code for stackNavigator: const DashboardStack =