-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
136 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": ["react-native-stage-0/decorator-support"], | ||
"env": { | ||
"development": { | ||
"plugins": ["transform-react-jsx-source"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# OSX | ||
.DS_Store | ||
|
||
# node.js | ||
node_modules/ | ||
npm-debug.log | ||
|
||
# Exponent | ||
.exponent | ||
node_modules/**/* | ||
.exponent/**/* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "Org Squared", | ||
"description": "Org mode client", | ||
"slug": "org-squared", | ||
"sdkVersion": "9.0.0", | ||
"version": "0.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"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,99 @@ | ||
/** | ||
* Entry point for org_squared app | ||
*/ | ||
'use strict'; | ||
/** In order for logging to stream to XDE or the exp CLI you must import the | ||
* exponent module at some point in your app */ | ||
import Exponent from 'exponent'; | ||
|
||
import { Provider } from 'react-redux'; | ||
import { combineReducers, createStore } from 'redux'; | ||
let React = require('react-native'); | ||
let { | ||
import React from 'react'; | ||
import { | ||
AppRegistry, | ||
Platform, | ||
StatusBar, | ||
StyleSheet, | ||
} = React; | ||
View, | ||
} from 'react-native'; | ||
import { | ||
createRouter, | ||
NavigationProvider, | ||
StackNavigation, | ||
} from '@exponent/ex-navigation'; | ||
import { | ||
FontAwesome, | ||
} from '@exponent/vector-icons'; | ||
|
||
// import Router from './navigation/Router'; | ||
// import cacheAssetsAsync from './utilities/cacheAssetsAsync'; | ||
|
||
let ExScreen = require('./ExScreen'); | ||
import { Provider } from 'react-redux'; | ||
import { combineReducers, createStore } from 'redux'; | ||
let OrgView = require('./OrgView'); | ||
|
||
function OrgSquared() { | ||
const store = createStore(combineReducers({ | ||
doc: OrgView.orgAction, | ||
focus: OrgView.focus | ||
})); | ||
|
||
return ( | ||
<Provider store={store}> | ||
<ExScreen | ||
title="org_squared" | ||
scrollEnabled={true} | ||
style={styles.container}> | ||
<OrgView.EntryView /> | ||
</ExScreen> | ||
</Provider> | ||
); | ||
}; | ||
|
||
let styles = StyleSheet.create({ | ||
|
||
const Router = createRouter(() => ({ | ||
home: () => OrgView.EntryView, | ||
})); | ||
|
||
class AppContainer extends React.Component { | ||
state = { | ||
appIsReady: true, | ||
// appIsReady: false, | ||
} | ||
|
||
// componentWillMount() { | ||
// this._loadAssetsAsync(); | ||
// } | ||
|
||
// async _loadAssetsAsync() { | ||
// await cacheAssetsAsync({ | ||
// images: [ | ||
// require('./assets/images/exponent-wordmark.png'), | ||
// ], | ||
// fonts: [ | ||
// FontAwesome.font, | ||
// {'space-mono': require('./assets/fonts/SpaceMono-Regular.ttf')}, | ||
// ], | ||
// }); | ||
|
||
// this.setState({appIsReady: true}); | ||
// } | ||
|
||
render() { | ||
if (this.state.appIsReady) { | ||
let { notification } = this.props.exp; | ||
const store = createStore(combineReducers({ | ||
doc: OrgView.orgAction, | ||
focus: OrgView.focus | ||
})); | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<Provider store={store}> | ||
<NavigationProvider router={Router}> | ||
<StackNavigation | ||
id="root" | ||
initialRoute={Router.getRoute('home')} | ||
/> | ||
</NavigationProvider> | ||
|
||
{Platform.OS === 'ios' && <StatusBar barStyle="default" />} | ||
{Platform.OS === 'android' && <View style={styles.statusBarUnderlay} />} | ||
</Provider> | ||
</View> | ||
); | ||
|
||
} else { | ||
return <Exponent.Components.AppLoading />; | ||
} | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff' | ||
} | ||
backgroundColor: '#fff', | ||
}, | ||
statusBarUnderlay: { | ||
height: 24, | ||
backgroundColor: 'rgba(0,0,0,0.2)', | ||
}, | ||
}); | ||
|
||
AppRegistry.registerComponent('main', () => OrgSquared); | ||
AppRegistry.registerComponent('main', () => AppContainer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters