LEARN ONCE, WRITE ANYWHERE: BUILD MOBILE APPS WITH REACT
Flex Container
Flex Item
Flex Item
Flex Item
Main Size
Cross Size
Main Axis
Cross Axis
Cross Start
Cross End
Main Start
Main End
autolayout
flexbox
Apps: 100+
前提:
三方设计一致
无定制Native组件需求
fetch('http://api.baidu.com/path?params') // web api
.then(response => response.json())
.then(json => {
// 正常响应处理逻辑
})
.catch(error =>
// 异常处理逻辑
);
比XMLHttpRequest更先进的WebAPI,支持Promise
iOS
Android