Git Product home page Git Product logo

react-web's People

Contributors

akecn avatar brainpoint avatar chenjun1011 avatar cssivision avatar flyskywhy avatar fov42550564 avatar gre avatar huangzuizui avatar keeth avatar kunkun12 avatar miracle2k avatar mvayngrib avatar tiagojdferreira avatar vmakhaev avatar warmhug avatar wssgcg1213 avatar yawetse avatar yuanyan avatar yujiangshui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-web's Issues

make react-web global styles more explicit

currently every div under root class has flexbox properties

.react-web-root div {
    position: relative;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

if we use third party components(example : react-select) then its breaking third party component layout.

can we add a class tag .react-web-view to all View components and define global styles for that ?

运行抛出socket.io 404错误

运行react-web start,浏览器console输入错误:
image

webpack.config.js没有配置socket,为什么会有socket的请求?

ES6 ... is not supported??

When I use react-web to convert my RN project, errors come:


ERROR in ./app/reducers/counter.js
Module build failed: SyntaxError: /Users/apple/Desktop/FProject/app/reducers/counter.js: Unexpected token (19:16)
17 | case types.INCREMENT:
18 | return {

19 | ...state,
| ^
20 | count: state.count + action.num
21 | };
22 | case types.DECREMENT:

So how to handle this problem?

Issue upgrading from 0.1.6

upgrading from 0.1.6 to 0.2.4.
If I try to console.log("RN", require("react-native")); I have:

screen shot 2016-03-14 at 12 29 36

which is weirdly the package.json content of react-web and not anymore the library content.

I didn't change anything in my webpack, do you have a hint on what happen/what I missed to change?

why is setNativeProps not defined on react-web components?

the documentation says

Component without setNativeProps method on web platform

var setNativeProps = require('ReactSetNativeProps')
setNativeProps(this.refs.foo, {
  style: {
    top: 0
  }
})

and I can confirm that components like View don't have setNativeProps method. Is there a reason why it is not possible to have it? Why not having a web implementation of NativeMethodsMixin.js ?

This would avoid doing a lot of branching for handling this case.

Module not found: Error: Cannot resolve module 'ReactView'

Hi,

here is my webpack config

 plugins: [
        new HasteResolverPlugin({
            platform: 'web'
        }),
        new webpack.NoErrorsPlugin(),
        new CommonsChunkPlugin({
            name: "mainpage"
        })
    ],
    resolve: {
        alias: {
            'react-native': 'react-web'
        }
    },

but when i run webpack i am getting module not found for components/apis :s

ERROR in ./~/react-web/lib/react-web.js Module not found: Error: Cannot resolve module 'ReactTouchableOpacity' in admin/node_modules/react-web/lib @ ./~/react-web/lib/react-web.js 190:13-45

navigator back error

I find the error from Page A ->B->C ,back key to A , Next A->B->C ,next click back key don't go the Page B

Cannot read property 'string' of undefined

when I run the UIexplorer examples,I meet the error。

UIExplorerBlock.js:28 Uncaught TypeError: Cannot read property 'string' of undefined

package.json

{
"name": "UIExplorerApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start"
},
"dependencies": {
"react": "0.14.7",
"react-dom": "^0.14.7",
"react-web": "^0.2.1"
},
"devDependencies": {
"babel": "5.8.19",
"babel-core": "5.8.19",
"babel-loader": "^6.2.4",
"haste-resolver-webpack-plugin": "^0.2.1",
"json-loader": "^0.5.4",
"react-hot-loader": "^1.3.0",
"react-native-cli": "^0.1.10",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"webpack-html-plugin": "^0.1.1"
}
}

我去研究一下了代码,copy了listview和navigator过来,先说listview,我看了源代码api到是实现了,但是native的listview有个懒加载的功能,这个没实现啊?你们打算实现吗?不做的话,我就自己做了?

到时候可以反馈给你们,我就删除少量的import引用,大部分代码直接抄过来的,我主要是想实现listview的懒加载功能,如果有现成的我就直接抄了,还望赐教。。。。如果大家都没计划写的话,h5这部分listview我还是自己做了算了

add ErrorUtils

I have a bunch of place where I use require("ErrorUtils") and ErrorUtils.reportError

app not responding when copy pasting data in TextInput

Hi
I have Custom TextInput component based on TextInput on onChangeText i have some validation logic to be executed and component updates its state with error messages if any. If i manually type data then component updating its state fine, but when i copy paste data into TextInput app is not responding anymore. Chrome displaying alert saying page not responding do you want to kill/wait ..

如何将打包体积缩小?

webpack 以及其他的支持 CommonJS 规范的打包工具,都会把文件中 require 的所有组件都打包在一起。对于 React Native 来说代码体积大小无关紧要,而在 Mobile web 来说,就要稍微重要一些了。特别是如果你的项目只需要 Text 组件,但由于 require('react-web') 结果把所有的组件全部打包进来了,就比较伤感。

基于 webpack 插件,还可以用另一种方式引入组件以解决这个问题,你可以叫它 Haste 方式。使用这种方式需要加载 webpack 插件 haste-resolver-webpack-plugin,默认的 webpack 配置已经帮你加载好了,你可以直接在组件里面这样用:

var Text = require('ReactText');
而不是以前那样:

var {Text} = require('react-native');

关于这个内容,能否详细告知一下,我生成最简单的react-native的项目,加入react-web后,对项目打包,生成的bundlejs为4M,bundlemap为6M,怎么破

Cannot resolve module 'SearchBar'?

Movies的例子,SearchBar有三个js:SearchBar.android.js,SearchBar.ios.js,SearchBar.web.js.

var SearchBar = require('SearchBar');,没有指明会加载哪个js模块?

extendCreateElement.js文件type=undefined

使用了NavigatorIOS,然后浏览器访问bundle出来的html,如下执行到type.displayName,经过几次执行后,type某一次是undefined,所以会出错

React.createElement = function (type, props) {
    var args = arguments;

    if (type.displayName !== 'AnimatedComponent' && props && props.style && (Array.isArray(props.style) || typeof props.style === 'object')) {
      var style = processor(props.style);

when using a non React Native component that uses `style` props, that object still get processed

I'm trying to use react-canvas because I need to get things done with a Canvas but react-web breaks the library because it overrides all style props.

What happens: react-web overrides the style props. see code here
What I think should happens: react-web should overrides style only if the one of React Native component, not ALL components.

Also, that ducktyping is error prone: I think you should have an internal whitelist of all react-web components and just see if the type is in this list.

I'll try to fix it and provide a PR

Module not found和Module parse failed

初次接触这个项目,感觉蛮好的,Example都已经跑通;
但是在我们实际线上的项目使用react-web start的时候报错了
1、ERROR in ./common_modules/comkit/view-container.js
Module not found: Error: Cannot resolve module 'dismissKeyboard' in /Users/xx/react-native/app/common_modules/comkit
@ ./common_modules/comkit/view-container.js 7:23-49
类似几个组件报错,Dimensions、dismissKeyboard、TextInputState、ProgressBarAndroid、SwitchAndroid、BackAndroid

2、ERROR in ./~/react-native-code-push/CodePush.js
Module parse failed: /Users/xx/react-native/d2papp/node_modules/react-native-code-push/CodePush.js Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| import { AcquisitionManager as Sdk } from "code-push/script/acquisition-sdk";
| import { Alert } from "./AlertAdapter";
| import requestFetchAdapter from "./request-fetch-adapter";
@ ./apps/app.js 21:15-48

ERROR in ./~/react-native-viewpager/ViewPager.js
Module parse failed: /Users/xx/react-native/d2papp/node_modules/react-native-viewpager/ViewPager.js Line 30: Unexpected token ...
You may need an appropriate loader to handle this file type.
|
| propTypes: {
| ...View.propTypes,
| dataSource: PropTypes.instanceOf(ViewPagerDataSource).isRequired,
| renderPage: PropTypes.func.isRequired,
@ ./apps/guide/index.js 14:16-49
引用了一些外部组件解析的时候报错

还有一些其他问题都已解决,还剩下上面2种,望帮忙看下

npm run demo 无法成功

404-K:react-web maizhikun$ npm run demo

[email protected] demo /Users/maizhikun/Open_Source/react-web
node local-cli/cli.js bundle webpack.config.js

/Users/maizhikun/Open_Source/react-web/node_modules/haste-resolver/lib/index.js:29
preferNativePlatform: preferNativePlatform, preferNativePlatform: preferNa
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Duplicate data property in object literal not allowed in strict mode
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Module._extensions..js (module.js:478:10)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/maizhikun/Open_Source/react-web/node_modules/haste-resolver/index.js:16:18)
at Module._compile (module.js:460:26)
at Module._extensions..js (module.js:478:10)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)

npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "demo"
npm ERR! node v0.12.7
npm ERR! npm v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] demo: node local-cli/cli.js bundle webpack.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] demo script 'node local-cli/cli.js bundle webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-web package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node local-cli/cli.js bundle webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-web
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls react-web
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/maizhikun/Open_Source/react-web/npm-debug.log

display:flex is missing in CSS?

Hi, first of all thanks for this great project :)

I have a View that uses this style:

{
    flexDirection: "row",
    alignItems: "center",
    justifyContent: "center",
  }

but the DOM version don't have a display:flex required to make the other CSS properties to work.
Have you see this?

Thanks

[Error] run demo error

ERROR in ./index.ios.js
Module build failed: ReferenceError: [BABEL] /Users/caolicheng/workspace/react-native-web-example/index.ios.js: Unknown option: base.stage
at Logger.error (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-core/lib/transformation/file/logger.js:41:11)
at OptionManager.mergeOptions (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:289:18)
at OptionManager.init (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:481:10)
at File.initOptions (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-core/lib/transformation/file/index.js:211:75)
at new File (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-core/lib/transformation/file/index.js:129:22)
at Pipeline.transform (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-core/lib/transformation/pipeline.js:48:16)
at transpile (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-loader/index.js:14:22)
at Object.module.exports (/Users/caolicheng/workspace/react-native-web-example/node_modules/babel-loader/index.js:88:12)
@ multi main
webpack: bundle is now VALID.

Image not displayed when use the images in IOS image.xcassets,how to handle this?

If I add the image to image.xcassets, and show it with the code


<Image style={[{height: 50, width: 80}]} source={{ uri:'test', isStatic: true }} />

after transformed by react-web, it turns out to be
<img src="test">

and the props of the image doesn't have a base64 image as the other images which used in the way: {Image src={require('../test.png')}}

生成的react web希望支持directorjs路由

习惯统一定义路由的方式,比如directorjs或者express的路由。
现在的react-web路由,我看是按点击某个记录或按钮顺序记录的。感觉使用directorjs的方式更直观与灵活。如果ios也能这样定义就好了。毕竟大部分的web框架都这种方式。

文件冲突

Error building DependencyGraph:
Error: Naming collision detected: /Users/aipai/project/mygithub/demo/AwesomeProject/node_modules/react-web/node_modules/fbjs/flow/include/containsNode.js collides with /Users/aipai/project/mygithub/demo/AwesomeProject/node_modules/react-native/node_modules/fbjs/lib/containsNode.js
at HasteMap._updateHasteMap (HasteMap.js:132:13)
at HasteMap.js:103:28
at tryCallOne (/Users/aipai/project/mygithub/demo/AwesomeProject/node_modules/react-native/node_modules/promise/lib/core.js:37:12)
at /Users/aipai/project/mygithub/demo/AwesomeProject/node_modules/react-native/node_modules/promise/lib/core.js:123:15
at flush (/Users/aipai/project/mygithub/demo/AwesomeProject/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
at doNTCallback0 (node.js:417:9)
at process._tickCallback (node.js:346:13)

Uncaught Invariant Violation: Ended a touch event which was not counted in trackedTouchCount.

Hi ,
In my app after few minutes of usage , if i click on TouchableHighLight button i am getting following error

Uncaught Invariant Violation: Ended a touch event which was not counted intrackedTouchCount.invariant @ mainpage-bundle.js:1309

ResponderEventPlugin.extractEvents @ mainpage-bundle.js:28134

EventPluginHub.extractEvents @ mainpage-bundle.js:4054

ReactEventEmitterMixin.handleTopLevel @ mainpage-bundle.js:4759

handleTopLevelWithoutPath @ mainpage-bundle.js:14930

handleTopLevelImpl @mainpage-bundle.js:14910

Mixin.perform @ mainpage-bundle.js:6904

ReactDefaultBatchingStrategy.batchedUpdates @ mainpage-bundle.js:10924

batchedUpdates @ mainpage-bundle.js:6412

ReactEventListener.dispatchEvent @ mainpage-bundle.js:15041


Image src not set when use require('./a.png') in RN

When I use


"<Image source={require('../imgs/process.png')} style={[s.imgBtn]}/>"

in my RN project, it turns out to be:

"<img style="width:45px;height:45px;" src="" data-reactid=".0.0.0.$scene_0.0.0.0.1.0.0">"

And when I debug in Chrome, I found that:


var props = _extends({}, this.props);
//source is just a base64 image and source uri is null;
props.src = props.source.uri;

// TODO: lazyload image when not in viewport

When I edit it to be:

props.src = props.source.uri || props.source;

It works!!

installDevVerbose方法找不到

使用react-web init **** 报错ReferenceError: installDevVerbose is not defined,搜这里,并没有找到定义的地方。

How to use the React web will React Native automatically generate the corresponding packaging web project

How to use the React web will React Native automatically generate the corresponding packaging web project ?

As you konw, I created a react native project, and completed the corresponding interface, can be run on the iOS simulator. I have read the react web documents, and made a part of the configuration, I downloaded the "react - native - web - example"(I can run in iOS simulator), but how do I use reactweb generate corresponding web project, so I can apply the same set of deployment on the web, please help me ,very very thanks...

react-web start启动不了

ERROR in .//react-web/lib/Utilties/setNativeProps.web.js
Module not found: Error: Cannot resolve module 'react-dom' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/Utilties
@ ./
/react-web/lib/Utilties/setNativeProps.web.js 15:16-36

ERROR in .//react-web/lib/Utilties/LayoutMixin.js
Module not found: Error: Cannot resolve module 'react' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/Utilties
@ ./
/react-web/lib/Utilties/LayoutMixin.js 11:13-29

ERROR in .//react-web/lib/Utilties/LayoutMixin.js
Module not found: Error: Cannot resolve module 'react-dom' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/Utilties
@ ./
/react-web/lib/Utilties/LayoutMixin.js 15:16-36

ERROR in .//react-web/lib/Portal/Portal.js
Module not found: Error: Cannot resolve module 'react' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/Portal
@ ./
/react-web/lib/Portal/Portal.js 15:13-29

ERROR in .//react-web/lib/PanResponder/injectResponderEventPlugin.web.js
Module not found: Error: Cannot resolve module 'react/lib/EventPluginRegistry' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/PanResponder
@ ./
/react-web/lib/PanResponder/injectResponderEventPlugin.web.js 10:35-75

ERROR in .//react-web/lib/PanResponder/injectResponderEventPlugin.web.js
Module not found: Error: Cannot resolve module 'react/lib/ResponderEventPlugin' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/PanResponder
@ ./
/react-web/lib/PanResponder/injectResponderEventPlugin.web.js 14:36-77

ERROR in .//react-web/lib/PanResponder/injectResponderEventPlugin.web.js
Module not found: Error: Cannot resolve module 'react/lib/EventConstants' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/PanResponder
@ ./
/react-web/lib/PanResponder/injectResponderEventPlugin.web.js 18:30-65

ERROR in .//react-web/lib/PanResponder/injectResponderEventPlugin.web.js
Module not found: Error: Cannot resolve module 'react/lib/ResponderTouchHistoryStore' in /Users/lza/Documents/乐致安/XTMedic/XTMedicWeb/node_modules/react-web/lib/PanResponder
@ ./
/react-web/lib/PanResponder/injectResponderEventPlugin.web.js 22:42-89

Unable to resolve module ReactJsonp?

I'm trying example of movie.

+ DEST=/Users/LiaoYingRay/Library/Developer/Xcode/DerivedData/RNmovies-floigkrygboxgoayhhrfadmwqzsd/Build/Products/Debug-iphonesimulator/RNmovies.app


+ '[' -z '' ']'


+ export NVM_DIR=/Users/LiaoYingRay/.nvm


+ NVM_DIR=/Users/LiaoYingRay/.nvm


+ [[ -s /Users/LiaoYingRay/.nvm/nvm.sh ]]


++ command -v brew


+ [[ -x /usr/local/bin/brew ]]


++ brew --prefix nvm


+ [[ -s /usr/local/Cellar/nvm/0.29.0/nvm.sh ]]


+ react-native bundle --entry-file index.ios.js --platform ios --dev true --bundle-output /Users/LiaoYingRay/Library/Developer/Xcode/DerivedData/RNmovies-floigkrygboxgoayhhrfadmwqzsd/Build/Products/Debug-iphonesimulator/RNmovies.app/main.jsbundle --assets-dest /Users/LiaoYingRay/Library/Developer/Xcode/DerivedData/RNmovies-floigkrygboxgoayhhrfadmwqzsd/Build/Products/Debug-iphonesimulator/RNmovies.app


bundle: Created ReactPackager


uncaught error Error: UnableToResolveError: Unable to resolve module ReactJsonp from /Users/LiaoYingRay/Projects/github/demo/RNmovies/SearchScreen.js: Invalid directory /Users/node_modules/ReactJsonp


    at ResolutionRequest.js:351:15


    at tryCallOne (/Users/LiaoYingRay/Projects/github/demo/RNmovies/node_modules/react-native/node_modules/promise/lib/core.js:37:12)


    at /Users/LiaoYingRay/Projects/github/demo/RNmovies/node_modules/react-native/node_modules/promise/lib/core.js:123:15


    at flush (/Users/LiaoYingRay/Projects/github/demo/RNmovies/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)


    at doNTCallback0 (node.js:417:9)


    at process._tickCallback (node.js:346:13)


See logs /var/folders/53/s7vfpx994bq379dcvh2j96r00000gn/T/react-packager.log


    at SocketClient._handleMessage (SocketClient.js:139:23)


    at BunserBuf.<anonymous> (SocketClient.js:53:42)


    at emitOne (events.js:77:13)


    at BunserBuf.emit (events.js:169:7)


    at BunserBuf.process (/Users/LiaoYingRay/Projects/github/demo/RNmovies/node_modules/react-native/node_modules/bser/index.js:289:10)


    at /Users/LiaoYingRay/Projects/github/demo/RNmovies/node_modules/react-native/node_modules/bser/index.js:244:12


    at doNTCallback0 (node.js:417:9)


    at process._tickCallback (node.js:346:13)


Command /bin/sh failed with exit code 1

Unable to find react-web-cli

The instructions for adding react-web to an existing project say to use react-web-cli, but that appears to create a new project, not add it to an existing project. I tried looking for the source, and get a 404 for the github repo linked to from the react-web-cli npm module. I can dig to find the source in my global node_modules, but it would be great if it were open-sourced!

Very exciting project though. Thanks for the hard work!

Haste resolver does not resolve *.web.js

I created a RN0.19 app and added react-web by running react-web init in a separate directory and copying in the dependencies and webpack config. You can see the full result at https://github.com/rreusser/react-web-sample-app.

Expected behavior:

For Android and iOS, import App from './app/views/app' imports ./app/views/app/index.${platform}.js. I would expect that line to import ./app/views/app/index.web.js for the web platform, or ./app/views/app.web.js if not nested in a directory.

Observed behavior:

Files with suffix *.web.js are not built (excluding the entry point index.web.js which is explicitly specified). react-web start gives the error:

ERROR in ./index.web.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./app/views/app in /Users/rreusser/path/to/SampleApp
 @ ./index.web.js 11:19-45

I can work around this by using *.js instead of *.web.js for the web platform, i.e.:

  • app/views/app/index.ios.js (imported by iOS)
  • app/views/app/index.android.js (imported by Android)
  • app/views/app/index.js (imported by web and fortunately not by the others)

In this case, I do see the resolver line:

  [242] ./app/views/app/index.js 4.42 kB {0} [built]

I'd prefer to call it index.web.js though. I got as far as starting to work through haste-resolver and haste-resolver-webpack-plugin before deciding to see if this should be expected to work. I think it's just a config issue, but I'm not quite able to solve it.

Any advice would be greatly appreciated!

Thanks!

Problem with escope dependency

Just cloned your repo and after doing npm install and npm start I got an issue with 'visitClass' which is caused by the library escope. For more info, read babel/babel-eslint#243 , but the basic work around is:

npm uninstall [email protected]
npm install [email protected]

This fixes it the problem, but I am not sure if this should be added to the readme, as they seem to be working on a solution and the problem might be fixed by updating babel-eslint in the near future.

Image resizeMode support

It doesn't seem resizeMode is supported, right?
Do you have plan for this? I know that CSS can do things background-size:contain, but that's only on a background. not sure how to address this while keeping the <img/>, but maybe with a container (that would use the Image style) and some CSS transforms on the image?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.