react-native-web

react-native-web, DatePicker component?

a 夏天 提交于 2019-12-06 09:37:04
I was hoping to use https://github.com/xgfe/react-native-datepicker with react-native-web but it's not compatible I think. Is there other library that offers native datepicker look as in the image which are compatible with react-native-web ? one possibility is to write a native input with "date" type with the createElement function from react-native-web library like i did here with select and option tags: https://gist.github.com/orYoffe/1f5d1651bab5d477730aec317ed405fc Then you would have native behaviour on mobile web and other native supported features 来源: https://stackoverflow.com/questions

how to solve this error You may need an appropriate loader to handle this file type

隐身守侯 提交于 2019-12-03 23:39:45
I got this error with this library https://github.com/react-native-web-community/react-native-web-linear-gradient/ the error link https://github.com/react-native-web-community/react-native-web-linear-gradient/issues/1 details of error: Module parse failed: Unexpected token (5:22) You may need an appropriate loader to handle this file type. my webpack: 'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths

how to use react-native-web and react-navigation together and access from web url

若如初见. 提交于 2019-12-03 09:59:47
UPDATE : react-navigation web support is done. follow this: https://reactnavigation.org/docs/en/web-support.html ORIGIN : I try to share my code between react-native and web. when I try react-native-web, it works well. but there is only one question, how to access the specific screen from URL? I read the react-navigation docs, there nothing about that. and react-router-native can catch the web URL, but it has navigator likes StackNavigator/DrawerNavigator. and idea about that? 来源: https://stackoverflow.com/questions/49186634/how-to-use-react-native-web-and-react-navigation-together-and-access