Questions tagged [react-native-web]

react-native-web is a library aims to make react-native projects able to run in web browser, by providing the same Components and APIs of react-native for web.

355 questions
0
votes
1 answer

ReactJS / JavaScript : Not receiving resize event for many cases

I am working on chat interface and want my chat log items to fit on screen when the window resizes. For the main list I'm using a FlatList and each individual item is a separate Component. To achieve this, I have subscribed to the resize and…
Divyansh Goenka
  • 813
  • 1
  • 6
  • 27
0
votes
1 answer

Is it possible to override the "module" field in package.json?

I am import React-Native-Web into my project and I was transpiling it when my transpiling process ran into errors that I wasn't familiar with. After reading through it I realized that the library was offering me a transpiled version of the code,…
Cody Jones
  • 320
  • 1
  • 2
  • 13
0
votes
1 answer

Attempted import error: 'ApiGet' is not exported from './apiFetcher' when compile react-native to react-native-web

I am building react native app and it run successfully on both Android and iOS. I want to convert react-native app to web app. I try followed tutorial:…
vannguyen
  • 196
  • 1
  • 4
  • 19
0
votes
1 answer

Gatsby, React Native Web - GraphQL Error Expected type Craft_SectionsEnum

Background I created a new Section in Craft CMS called forVenues, and am able to query for data in the CraftQL test endpoint as follows: { entries(section: [forVenues]) { ... on ForVenuesChecklist { title icon { url …
Anthony Krivonos
  • 4,155
  • 3
  • 13
  • 30
0
votes
0 answers

is React Native for web ready for production

Should I use react-native-web just yet? Everything looks ok to me except for the router. For reference https://github.com/necolas/react-native-web
Shakil Ahmed
  • 289
  • 1
  • 2
  • 10
0
votes
1 answer

Why is TypeScript not parsing my `react-native-web` code? (NOT using `create-react-native-app`)

Already tried https://github.com/necolas/react-native-web/issues/832 Got: for: I thought the issue might be the linter error I was getting b/c of the react-native aliasing of react-native-web (which for some reason, TypeScript can't figure…
0
votes
1 answer

React-native build android fail dismatch react-native module complie version and runtime version error

I build android app for debugging, script run with cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug not using react-native run-android because using react-native-navigation v2 from RNN recommend guide. But, build fail with this…
ddinggu
  • 1
  • 2
0
votes
1 answer

React Native Web: How to find compatible packages?

I've got some questions regarding React Native Web. I haven't really wrapped my head around how it works so I'm hoping to get some answers. Exactly, what happens when we "alias" the React Native to Web? When working with Expo, why isn't some…
AlfredOdling
  • 331
  • 2
  • 5
  • 18
0
votes
1 answer

setting up react navigation for WEB failed to compile

I want to use React Navigation 3.x in combination with react-native-web. By going through the "getting started"-steps, simply importing: import { createStackNavigator, createAppContainer } from "react-navigation"; and updating the babel…
0
votes
1 answer

location the source of Invariant Violation: Objects are not valid as a React child (found: [object Promise])

The stack trace is not pointing to the source of the problem: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead. in Route (at App.js:84) in Switch (at…
roberto tomás
  • 3,617
  • 2
  • 32
  • 52
0
votes
0 answers

Use Overflow in FlatList

I have a dropdown menu inside all items in FlatList However, the menu from the last item will cut off by the FlatList container. After debugging on Chrome, I found that adding overflow: 'visible' to FlatList's div works. But I have no way to…
0
votes
1 answer

Dealing with 3rd parties in create-react-app with react-native-web

We are trying to use the same React components both in mobile (react-native) and in web (create-react-app). It's is working out pretty well so far thanks to react-native-web (configuration below). However react-native-vector-icons, which we use…
Guy
  • 9,859
  • 13
  • 63
  • 104
0
votes
1 answer

Is it possible to build mobile and web apps from the same code base?

Is it possible to have a single code base for a mobile(ios/android) and web application? I'm thinking about using react native or angular/nativescript. If you have attempted this what are the things to keep in mind before doing this. Also anything…
0
votes
1 answer

Can we use the React Native component in React

Recently I have a requirement where I need to use the react native component in react web app. I have searched and found one component i.e React Native Web. That converts the react native component to work in react web app. Although I am having some…
Abdul Mannan
  • 130
  • 1
  • 8
0
votes
1 answer

React native web send an email

I'm trying to set a function where when a button is clicked the program will send an email. I'm using react native web. so far I have tried react-native-mail. this opens an email client but when I try to run build-web, the node module for…
1 2 3
23
24