Skip to content

Commit

Permalink
added exponent
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeuler committed Nov 18, 2016
1 parent 159fc3a commit a24c221
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mobile/react-native-tutorial/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["babel-preset-exponent"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
}
}
}
3 changes: 3 additions & 0 deletions mobile/react-native-tutorial/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/**/*
.exponent/*
npm-debug.*
21 changes: 21 additions & 0 deletions mobile/react-native-tutorial/exp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "react-native-tutorial",
"description": "An empty new project",
"slug": "react-native-tutorial",
"sdkVersion": "11.0.0",
"version": "1.0.0",
"orientation": "portrait",
"primaryColor": "#cccccc",
"iconUrl": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png",
"notification": {
"iconUrl": "https://s3.amazonaws.com/exp-us-standard/placeholder-push-icon-blue-circle.png",
"color": "#000000"
},
"loading": {
"iconUrl": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png",
"hideExponentText": false
},
"packagerOpts": {
"assetExts": ["ttf", "mp4"]
}
}
28 changes: 28 additions & 0 deletions mobile/react-native-tutorial/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import Exponent from 'exponent';
import React from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';

class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up main.js to start working on your app!</Text>
</View>
);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

Exponent.registerRootComponent(App);
14 changes: 14 additions & 0 deletions mobile/react-native-tutorial/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "react-native-tutorial",
"version": "0.0.0",
"description": "Hello Exponent!",
"author": null,
"private": true,
"main": "main.js",
"dependencies": {
"exponent": "~11.0.2",
"@exponent/vector-icons": "~2.0.3",
"react": "~15.3.2",
"react-native": "git+https://github.com/exponentjs/react-native#sdk-11.0.3"
}
}

0 comments on commit a24c221

Please sign in to comment.