Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[native] Add placeholder login pages #705

Merged
merged 10 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,45 @@ jobs:
node-version: 18
cache: npm
cache-dependency-path: native/package-lock.json
- run: npm install -g npm
- run: npm install
- run: npm ci
working-directory: ./native
- run: npm run test
working-directory: ./native

lint:
name: Lint
needs: changes
if: ${{ needs.changes.outputs.native == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: native/package-lock.json
- run: npm ci
working-directory: ./native
- run: npm run lint
working-directory: ./native

type-check:
name: Type check
needs: changes
if: ${{ needs.changes.outputs.native == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: native/package-lock.json
- run: npm ci
working-directory: ./native
- run: npm run tsc
working-directory: ./native


4 changes: 4 additions & 0 deletions native/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["universe/native"],
};
20 changes: 0 additions & 20 deletions native/App.js

This file was deleted.

11 changes: 0 additions & 11 deletions native/App.test.js

This file was deleted.

4 changes: 2 additions & 2 deletions native/AppEntry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import registerRootComponent from 'expo/build/launch/registerRootComponent';
import registerRootComponent from "expo/build/launch/registerRootComponent";

import App from './App';
import App from "./src/App";

registerRootComponent(App);
4 changes: 1 addition & 3 deletions native/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
Expand Down
4 changes: 2 additions & 2 deletions native/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = function(api) {
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
presets: ["babel-preset-expo"],
};
};
Loading