프로젝트
GitHub에서 보기
xiekw2010/react-native-gitfeed
소개
React Native로 만든 또 하나의 GitHub 클라이언트입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGithub Feed
Yet another Github client written in react-native.
Includes ?
- Feed like web github home.
- Watched repos' notification.
- Trends.
- Personal.
How to run iOS
rm -rf node_modules
npm install
if error about 'EACCS' try
sudo chown -R $(whoami) "$HOME/.npm"
run the project in ios dir
(注意 如果要contribute cocoapods 建议使用0.35.0版本!)
in iOS dir
pod install
###接入流程
- 在index.ios.js(index.android.js)里写入Production的 deploymentKey,通常在componentDidMount里写入如下:
const codePush = require('react-native-code-push');
codePush.sync({
updateDialog: true,
installMode: codePush.InstallMode.IMMEDIATE,
deploymentKey: dpkey,
});
- 修改xcode的edit schema 使得build app是 release模式的,在appDelegate里写入:
NSURL *jsCodeLocation;
#ifdef DEBUG
jsCodeLocation = [NSURL URLWithString:@"http://30.10.111.158:8081/index.ios.bundle?platform=ios&dev=true"];
jsCodeLocation = [NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]];
#else
jsCodeLocation = [CodePush bundleURL];
#endif
- 随意乱改js文件
- 打包 所有js文件在一个其他位置,可以使用
打包需要更新的资源 - 用code-push发布。
CodePush
注意在打包的目标地址先建立对应的目录比如这里的~/Desktop/release,要现在Desktop建立好。
打包到桌面本地资源(包括图片): react-native bundle --platform ios --entry-file index.ios.js --bundle-output ./ios/main.jsbundle --dev false
查看更新状态: code-push deployment ls GitFeed-iOS
发布更新: code-push release GitFeed-iOS ~/Desktop/release 1.0.0 -d Production
관련 프로젝트 살펴보기
불러오는 중…