expo

React native expo cli installing error:404 Not Found - GET https://registry.npmjs.org/error-ex

蹲街弑〆低调 提交于 2020-05-16 02:45:28
问题 Below error occurred when I tried to install expo cli globally using npm install -g expo-cli Can any one help with this ? $ npm install -g expo-cli npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are

React native expo cli installing error:404 Not Found - GET https://registry.npmjs.org/error-ex

北战南征 提交于 2020-05-16 02:45:25
问题 Below error occurred when I tried to install expo cli globally using npm install -g expo-cli Can any one help with this ? $ npm install -g expo-cli npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are

Tunnel URL not found, falled back to LAN URL

回眸只為那壹抹淺笑 提交于 2020-05-15 10:24:08
问题 How do I run my expo app using the tunnel? It worked last week but for the last 3 days, it stopped working. Code written: expo start --tunnel Methods I tried: I used 3 different networks. One using public wifi, one using home wifi and lastly using 4G hotspot. Logging into expo account before running expo start --tunnel https://forums.expo.io/t/tunnel-url-not-found-failed-back-to-lan-url/14380/7 Is there any other way I can try to make the Tunnel URL to work? 回答1: Worked when i connected my

crypto.getRandomValues() not supported

纵然是瞬间 提交于 2020-05-15 09:25:46
问题 I'm getting this error with npm react-native-webview@9.0.1 when I try to generate a QR code with react-native-qrcode-generator I'm using react-native with an expo managed workflow. And the thing is it works on iOS, and i only get the error on Android I searched for a solution myself and I tried installing react-native-get-random-values but that also didn't work. Any thoughts? 回答1: I just had the same issue on android. Works fine on iOS. I solved it with: Uninstall the existing one npm

TypeError: Cannot read property 'measureInWindow' of undefined

筅森魡賤 提交于 2020-05-15 08:12:10
问题 Environment: Windows 10 Node js: 10.x Expo: 35.0.0 React: 16.8 React-native: 0.62.0 React-navigation: 3.0.7 A simple app developed to test navigation on android app, facing the below error: "TypeError: Cannot read property 'measureInWindow' of undefined" Any suggestion would be appreciated. Thank you, 回答1: install react-native-safe-area-view following is the command to install react-native-safe-area-view: npm i react-native-safe-area-view for more info: https://www.npmjs.com/package/react

Force LTR on Expo on Android

*爱你&永不变心* 提交于 2020-05-15 02:43:05
问题 I am creating an app with React Native with Expo and I can't find a solution do force LTR (left-to-right) direction. Some of my users have its phone with RTL languages, but I only have English and Norwegian, so it doesn't make sense to show text in RTL in English. I am also using i18next for translation. Any ideas on how to solve this? Force LTR. 回答1: Just found my solution after more digging. On App.js import the following library: import { I18nManager } from "react-native"; Then right after

Force LTR on Expo on Android

笑着哭i 提交于 2020-05-15 02:43:04
问题 I am creating an app with React Native with Expo and I can't find a solution do force LTR (left-to-right) direction. Some of my users have its phone with RTL languages, but I only have English and Norwegian, so it doesn't make sense to show text in RTL in English. I am also using i18next for translation. Any ideas on how to solve this? Force LTR. 回答1: Just found my solution after more digging. On App.js import the following library: import { I18nManager } from "react-native"; Then right after

React native local notifications

非 Y 不嫁゛ 提交于 2020-05-13 13:33:12
问题 I am new to React Native and need to implement a functionality where the app needs to send the user a notification every day at a certain time. The data to be shown for each day is stored in a json file on the client side and will not change. The notifications are on a schedule. Given that I was hoping there could be a way to just trigger a notification from the app itself. Does anyone know of a way to achieve this without having to detach the app from expo? I can't use 'react-native-push

Implement pull to refresh FlatList

让人想犯罪 __ 提交于 2020-05-09 18:51:08
问题 please help me out to implement pull to refresh on my app, I'm kinda new to react native, thanks. I don't know how to handle onRefresh and refreshing. class HomeScreen extends Component { state = { refreshing: false } _renderItem = ({ item }) => <ImageGrid item={item} /> _handleRefresh = () => { }; render() { const { data } = this.props; if (data.loading) { return ( <Root> <Loading size="large" /> </Root> ) } return ( <Root> <HomeHeader /> <FlatList contentContainerStyle={{ alignSelf:

Type Error undefined is not an object (evaluating 'Wu.getRandomValues')

房东的猫 提交于 2020-05-09 05:16:27
问题 This is the code I implemented for adding data to collection: import FirebaseKeys from "./config"; import firebase from "firebase"; import "@firebase/firestore"; class Fire { constructor() { firebase.initializeApp(FirebaseKeys); } addPost = async ({ text, localUri }) => { const remoteUri = await this.uploadPhotoAsync(localUri); const desc = text; return new Promise((res, rej) => { // console.log("THIS FIRESTORE" + this.firestore); const dbh = firebase.firestore(); // this.firestore.collection