0.0.1 • Published 10 years ago
angular-react-native-renderer v0.0.1
ATTENTION: This pacakge is an experimental renderer for Angular 2 and React Native.
A react-native renderer for Angular 2. For more info about this project, see the github repo.
Getting started
To run any react-native app, you need a Mac with XCode and node.
Create a React Native project:
npm install -g react-native-cli
react-native init myProjectName
cd myProjectNameAdd angular-react-native-renderer as a depenedency:
npm install angular-react-native-rendererCopy the example todo app:
cp node_modules/angular-react-native-renderer/examples/todoApp/index.ios.ts .The copied index.ios.ts file will have the wrong application name. Open it and replace "todoApp" on the last line with "theNameOfYourReactNativeProject".
Install needed .d.ts files with tsd:
npm install -g tsd
tsd install angular2 nodeCompile the example's .ts sources to .js:
npm install -g typescript
tsc index.ios.ts -m commonjs -t es5 --experimentalDecoratorsAnd run the app:
open myProjectName.xcodeprojXCode should open. Click the run button in the top left.
0.0.1
10 years ago