osdio / noder-react-native Goto Github PK
View Code? Open in Web Editor NEWThe mobile app of cnodejs.org written in React Native
Home Page: https://cnodejs.org/about
The mobile app of cnodejs.org written in React Native
Home Page: https://cnodejs.org/about
应该是我写的模块有问题,只是写完以后也没深入了解,这算是一个坑
Hi @soliury In MainActivity.java
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new RCTCameraPackage(),
new MainReactPackage(),
new VectorIconsPackage());
new BarcodeScanner();
}
needs to be
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new RCTCameraPackage(),
new MainReactPackage(),
new VectorIconsPackage()
new BarcodeScanner());
}
andriod 版本:4.4,权限管理已开启: 调用摄像头。
刚刚装好后运行时正常的!
上面的tab设计成可左右滑动的
然后发帖应该是比消息更常用的功能吧 建议把发帖放在外面
这个问题一直存在,官方也没有更好地解决办法,我曾经尝试过将未显示的row设置为空View,但是效果并不算很好。目前只有从oc角度去优化或许是最终的办法。
你好,初学Redux,新建一个工程,想学习noder中 Redux的写法。
将connectComponent.js组件放置在新工程中,
Home.js 类似这样
class Home extends Component {
constructor(props){
super(props);
}
render() {
return (
<View></View>
)}
}
export const LayoutComponent = Home;
export function mapStateToProps(state) {
return state;
}
MainContainer.js 中类似这样
import HomeComponent from './Home';
import connectComponent from '../utils/connectComponent.js';
const Home = connectComponent(HomeComponent); //---->这句提示找不到mapStateToProps
class MainContainer extends Component {
constructor(props){
super(props);
}
render() {
return (
<Home/>
);
}
}
请问我哪里写错了,为何找不到mapStateToProps
RT
reducers里除了业务的还有UI的,比如user.js和userUI.js,感觉有点冗余了。
UI里的主要目的是捕获Action的状态,如果统一在Actions里提供...ing和...ed,是不是代码更清晰了?
改进后这个插件 minPendingTime.js也就不需要了。
手机型号是:new noto x 2014 - XT1085 , Android 5.1
我似乎没有看到 thunk 中间件
但是 action 却貌似使用了thunk 中间件
exports.getAllTopicsFromStorage = function () {
return dispatch=> {
TopicService.storage.getAll()
.then(results=> {
dispatch({
type: types.GET_ALL_TOPICS_FROM_STORAGE,
results: results
})
})
.catch(err=> {
})
.done()
}
}
rt
克隆下来后编译失败,提示 'RCTRootView.h' file not found.
在Home页面的时候,物理返回键无法退出APP
component 中如下调用
actions.checkToken(result.data, ()=> {
router.pop();
actions.toast('登陆成功');
});
看了action 中的实现
export const checkToken = createAction(types.CHECK_TOKEN, async(token)=> {
const userLoginInfo = await userService.checkToken(token);
const user = await userService
.getUserInfo(userLoginInfo.loginname)
.then((data)=> {
return {
secret: userLoginInfo,
publicInfo: data
};
});
tokenService.setToken(token);
return user;
}, (token, resolved)=> {
return {
resolved: resolved,
sync: 'user'
}
});
然后再找
export default function asyncActionCallbackMiddleware() {
return next => action => {
const { meta = {}, error, payload } = action;
const { sequence = {}, resolved, rejected } = meta;
if (sequence.type !== 'next') return next(action);
// do callback
error ? (rejected && rejected(payload)) : (resolved && resolved(payload));
next(action);
}
}
请教下component中authToken 中的回调是在哪实现的
On the React Native Playground, we've retired versions before 0.11.0, so I had to remove this example from the front page which is not working there anymore. But, it would be great to put it back. Is there any working going on to upgrade?
Cheers!
全局环境中存在 react-native-cli
底下的内个 react-native: 0.23.1 貌似是项目自带的react-native依赖
去搜了一下发现是一个普遍的问题:
http://stackoverflow.com/questions/33908314/packager-wont-start
猜测原因是执行npm start会造成react-native路径错误
目前的解决方案是直接运行 react-native start 或者 直接运行 react-native run-android 可以正常启动。
这个 avatar_url 有更新,之前返回的是 /agent?url=xxxx
的地址,现在服务器准备回到国内,所以不再具备代理能力。之后这里会直接返回 url=xxxx
的真实url
求助:在修复了modal和icons的问题之后,还出现了这个错误。
noder-react-native/node_modules/react-native/Libraries/Image/RCTDownloadTaskWrapper.m:65:49: Null passed to a callee that requires a non-null argument
clang: error: no such file or directory: 'react-native/noder-react-native/node_modules/react-native-modal/node_modules/react-native-blur/RNBlur/BlurViewManager.m'
clang: error: no input files
我看了一下 react-native-modal确实不包含react-native-blur啊
npm run android
* Where:
Build file '/Users/l/project/native/noder-react-native/android/app/build.gradle' line: 104
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find property 'MYAPP_RELEASE_STORE_FILE' on SigningConfig_Decorated{name=release, storeFile=null, storePassword=null, keyAlias=null, keyPassword=null, storeType=null}.
https://github.com/soliury/noder-react-native/blob/v1.0.0-alpha2/src/layouts/Navigation.js#L46
This line this.router = this.router || new Router(navigator);
should be in the constructor:
this.router = new Router(navigator);
运行 react-native run-android
的时候build failed
var Navigation = require('./Navitation')
=> var Navigation = require('./Navigation')
详情中图片没有超出页面边界,但图片被缩放而且超出部分被隐藏了
回复中图片超出页面边界了
系统 安卓6.0
之后我们社区不打算提供的收藏功能,麻烦应用检查一下是否有接触到相关的功能,如果有的话,可以全部去掉。
如题,根目录下有app和src两个目录,里面的文件好像都是重复的,这两个目录有什么区别么?
这个暂时没有好的解决办法,现在navigator只有简单地didFocus
和WillFocus
事件,但是很难利用起来,等0.7.0之后吧
发表评论的时候,切换中文输入法,会导致app crash
npm install 之后 react-native bundle 提示这个,还有什么需要安装?
如题,无论ios还是android版本编译时都有同样的错误!?
解决相关bug: facebook/react-native#5246
这个。。每次都要点评论确实很烦啊。。。
iOS 9.3.1 进入置顶贴新的社区推荐客户端:Noder后, 客户端crash
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.