Skip to content

Commit

Permalink
[native] Add placeholder login pages (#705)
Browse files Browse the repository at this point in the history
* Add placeholder login pages

* fix test and update workflows

* rename dir

* fix entry file

* update background

* test workflow with npm ci

* keep KeyboardAvoidingView

* update frontend.yml

* revert frontend change

* Add prettier to lint checks
  • Loading branch information
hussam-i-am authored Jan 16, 2024
1 parent 6f81652 commit 20f1ce7
Show file tree
Hide file tree
Showing 25 changed files with 3,939 additions and 411 deletions.
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

0 comments on commit 20f1ce7

Please sign in to comment.