Skip to content

Commit

Permalink
Remove last traces of react-native.
Browse files Browse the repository at this point in the history
Continuation of 5ce264b.
  • Loading branch information
raineorshine committed Apr 14, 2024
1 parent 523bf0c commit 39cb39d
Show file tree
Hide file tree
Showing 15 changed files with 118 additions and 2,413 deletions.
1 change: 0 additions & 1 deletion .depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"em-typedoc-theme",
"eslint-config-react-app",
"eslint-plugin-flowtype",
"react-native",
"react-native-web",
"typedoc-*"
]
Expand Down
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = {
es6: true,
mocha: true,
jest: true,
'react-native/react-native': true,
},
extends: ['standard', 'react-app', 'plugin:react/recommended', 'plugin:import/typescript', 'raine', 'prettier'],
overrides: [
Expand Down Expand Up @@ -82,7 +81,7 @@ module.exports = {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
plugins: ['export-default-identifier', 'jsdoc', 'react', 'react-native', 'prettier'],
plugins: ['export-default-identifier', 'jsdoc', 'react', 'prettier'],
settings: {
react: {
version: 'detect',
Expand Down
4 changes: 0 additions & 4 deletions .typedoc-plugin-external-module-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ module.exports = (explicit, implicit, path) => {
// make index.js files root modules (e.g. action-creators.index.js => action-creators)
if (path.includes('index.js') || path.includes('index.ts')) return implicit

// ignore native modules otherwise typedoc crashes
// https://github.com/christopherthielen/typedoc-plugin-external-module-name/issues/682
if (path.includes('.native.')) return

// check for files which are placed in subdirectories of src
if (implicit !== '.') {
const matches = path.match(RegExp(`${implicit}/.*`))
Expand Down
6 changes: 0 additions & 6 deletions babel.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"last 1 safari version"
]
},
"main": "mobile/index.tsx",
"scripts": {
"cap:ios": "npm run cap:sync && cap open ios",
"cap:android": "npm run cap:sync && cap open android",
Expand Down Expand Up @@ -75,8 +74,6 @@
"@capacitor/keyboard": "^4.1.1",
"@capacitor/status-bar": "^4.1.1",
"@hocuspocus/provider": "^2.7.0",
"@react-native-async-storage/async-storage": "^1.13.0",
"@react-native-community/hooks": "^2.6.0",
"algoliasearch": "^4.9.2",
"axios": "^0.21.1",
"classnames": "^2.3.1",
Expand All @@ -89,11 +86,9 @@
"html-escaper": "^3.0.3",
"idb-keyval": "^6.2.0",
"immer": "^9.0.5",
"indexeddbshim": "^7.1.0",
"ipfs-http-client": "^43.0.1",
"lodash": "^4.17.21",
"moize": "^6.0.3",
"moti": "0.6.0",
"murmurhash3js": "^3.0.1",
"nanoid": "^3.1.30",
"openai": "^4.24.1",
Expand All @@ -109,16 +104,8 @@
"react-dom": "17.0.2",
"react-error-boundary": "^3.1.3",
"react-gravatar": "^2.6.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
"react-native-error-boundary": "^1.1.10",
"react-native-gesture-handler": "^1.10.2",
"react-native-get-random-values": "^1.7.0",
"react-native-picker-select": "^8.0.4",
"react-native-reanimated": "~2.1.0",
"react-native-sqlite-2": "^3.3.0",
"react-native-svg": "12.1.0",
"react-native-web": "^0.16.5",
"react-native-webview": "11.2.3",
"react-redux": "^7.2.4",
"react-scripts": "4.0.3",
"react-signature-pad-wrapper": "^3.3.1",
Expand Down
1 change: 0 additions & 1 deletion src/@types/indexeddbshim.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/@types/react-native-sqlite-2.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,6 @@ a.text-link {
padding-top: 500px;
}

.native .toolbar-container {
top: var(--safe-area-top) !important;
}

.toolbar {
max-width: 100%;
position: relative;
Expand Down Expand Up @@ -643,11 +639,6 @@ a.text-link {
margin-top: -2px;
}

/* */
.native {
padding-top: var(--safe-area-top);
}

/* Define the correct line-height for multiline thoughts. This is not used by single-line thoughts where line-height is used instead of padding in order to preserve click behavior. See ".thought-container" and ".child .editable" above. Increase specificity to override ".mobiile .child .editable". */
.multiline.multiline.multiline.multiline {
line-height: 1.25;
Expand Down Expand Up @@ -862,10 +853,6 @@ body.dark {
word-break: break-word; /* break at normal word boundary but also within word if it exceeds width of container */
}

.native .popup {
top: var(--safe-area-top) !important;
}

.status {
color: #aaa;
background-color: rgba(255, 255, 255, 0.8);
Expand Down Expand Up @@ -1711,10 +1698,6 @@ h1 .num-contexts {
text-decoration: none;
}

.native .popup-close-x {
top: var(--safe-area-top);
}

.status-close-x {
font-size: 16px;
top: 0;
Expand Down Expand Up @@ -2344,10 +2327,6 @@ code,
user-select: none;
}

.native .hamburger-menu {
top: var(--safe-area-top) !important;
}

.hamburger-menu > div > span {
background: black;
}
Expand Down
1 change: 0 additions & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** Defines client/browser-specific variables that do not change over the course of a session. */
import { Capacitor } from '@capacitor/core'
import 'react-native-get-random-values'

export const isIOS = Capacitor.getPlatform() === 'ios'

Expand Down
1 change: 0 additions & 1 deletion src/reducers/__tests__/importText.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _ from 'lodash'
import 'react-native-get-random-values'
import State from '../../@types/State'
import { ABSOLUTE_TOKEN, EMPTY_SPACE, EM_TOKEN, HOME_TOKEN } from '../../constants'
import importText, { ImportTextPayload } from '../../reducers/importText'
Expand Down
151 changes: 0 additions & 151 deletions src/style/commonStyles.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/util/adjustFontSize.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/util/createId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { nanoid } from 'nanoid'
import 'react-native-get-random-values'
import ThoughtId from '../@types/ThoughtId'
import globals from '../globals'

Expand Down
Loading

0 comments on commit 39cb39d

Please sign in to comment.