-
Notifications
You must be signed in to change notification settings - Fork 0
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
1,236 additions
and
15 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,3 @@ | ||
import MarkdownScreen from '@app/core/screens/MarkdownScreen' | ||
|
||
export default MarkdownScreen |
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
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,10 @@ | ||
const upstreamTransformer = require('@expo/metro-config/babel-transformer'); | ||
const MdxTransformer = require("@bacons/mdx/metro-transformer"); | ||
|
||
module.exports.transform = async (props) => { | ||
// Then pass it to the upstream transformer. | ||
return upstreamTransformer.transform( | ||
// Transpile MDX first. | ||
await MdxTransformer.transform(props) | ||
); | ||
}; |
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,20 @@ | ||
import { Image } from '../components/Image' | ||
|
||
<Image | ||
src={require('../assets/aetherspaceLogo.png')} | ||
style={{ marginBottom: 20 }} | ||
width={60} | ||
height={60} | ||
/> | ||
|
||
# Universal Expo + Next.js App Router Starter, with MDX | ||
|
||
A minimal starter for a **universal Expo + Next.js app** with their respective app routers. | ||
|
||
It's a good starting point if you want to: | ||
|
||
- ✅ make use of _app-dir file based routing_ in expo and next.js | ||
- ✅ have a _minimal monorepo setup_ with Typescript but no monorepo tool yet | ||
- ✅ leave *all other tech choices* for e.g. styling, dbs, component libs, etc. *up to you* | ||
|
||
> Need a more robust, Fully-Stacked, Full-Product, Universal App Setup? Check out **[Aetherspace](https://github.com/Aetherspace/green-stack-starter-demo#readme)** |
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,92 @@ | ||
import React from 'react' | ||
import { StyleSheet, View } from 'react-native' | ||
import { MDXStyles } from '@bacons/mdx' | ||
import { Link } from '../navigation/Link' // @ts-ignore | ||
import ReadMe from '../mdx/readme.mdx' | ||
|
||
/* --- <MarkdownScreen/> --------------------------------------------------------------------------- */ | ||
|
||
const MarkdownScreen = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<Link | ||
href="/" | ||
style={{ ...styles.backButton, ...styles.link, textDecorationLine: 'none' }} | ||
> | ||
{`< Back`} | ||
</Link> | ||
<MDXStyles | ||
h1={styles.h1} | ||
h2={styles.h2} | ||
p={styles.p} | ||
li={styles.li} | ||
blockquote={styles.blockquote} | ||
a={styles.link} | ||
> | ||
<ReadMe /> | ||
</MDXStyles> | ||
</View> | ||
) | ||
} | ||
|
||
/* --- Styles ---------------------------------------------------------------------------------- */ | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'flex-start', | ||
padding: 24, | ||
}, | ||
backButton: { | ||
position: 'absolute', | ||
top: 16, | ||
left: 16, | ||
}, | ||
subtitle: { | ||
marginTop: 8, | ||
marginBottom: 16, | ||
fontSize: 16, | ||
textAlign: 'center', | ||
}, | ||
h1: { | ||
fontSize: 24, | ||
fontWeight: 'bold', | ||
marginBottom: 16, | ||
}, | ||
h2: { | ||
fontSize: 20, | ||
fontWeight: 'bold', | ||
marginBottom: 16, | ||
}, | ||
p: { | ||
fontSize: 16, | ||
marginBottom: 16, | ||
lineHeight: 22, | ||
}, | ||
li: { | ||
fontSize: 16, | ||
marginBottom: 16, | ||
lineHeight: 22, | ||
}, | ||
blockquote: { | ||
borderLeftColor: 'lightgray', | ||
borderStyle: 'solid', | ||
borderLeftWidth: 6, | ||
fontSize: 16, | ||
paddingLeft: 16, | ||
paddingTop: 4, | ||
lineHeight: 22, | ||
}, | ||
link: { | ||
marginTop: 16, | ||
fontSize: 16, | ||
color: 'blue', | ||
textAlign: 'center', | ||
textDecorationLine: 'underline', | ||
}, | ||
}) | ||
|
||
/* --- Exports --------------------------------------------------------------------------------- */ | ||
|
||
export default MarkdownScreen |
Oops, something went wrong.