diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..2bcd546 --- /dev/null +++ b/.babelrc @@ -0,0 +1,8 @@ +{ + "presets": ["babel-preset-expo"], + "env": { + "development": { + "plugins": ["transform-react-jsx-source"] + } + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f9e17e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/**/* +.expo/* +npm-debug.* diff --git a/.watchmanconfig b/.watchmanconfig new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.watchmanconfig @@ -0,0 +1 @@ +{} diff --git a/App.js b/App.js new file mode 100644 index 0000000..ab66c7c --- /dev/null +++ b/App.js @@ -0,0 +1,37 @@ +import React from 'react'; +import { StyleSheet, Text, View, Button } from 'react-native'; + +import { Medium } from "./src"; + +export default class App extends React.Component { + + handlePress = async () => { + const result = await Medium.logInAsync({ + 'client_id': '70eaa8fd5369', + 'scope': Medium.getScopes(), + 'state': 'my arbitary state' + }) + + console.log(result); + } + + render() { + return ( + +