This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
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
39 changed files
with
672 additions
and
960 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native-community', | ||
extends: ['@react-native-community', 'plugin:jest/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
}; | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,6 @@ module.exports = { | |
singleQuote: true, | ||
trailingComma: 'all', | ||
bracketSpacing: true, | ||
semi: false | ||
semi: true | ||
}; | ||
|
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 |
---|---|---|
@@ -1,15 +1,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Test component renders 1`] = ` | ||
<Text | ||
<View | ||
style={ | ||
Array [ | ||
Object { | ||
"color": "red", | ||
"backgroundColor": "rgba(255, 0, 0, 0.25)", | ||
}, | ||
] | ||
} | ||
> | ||
Testing, testing, 1, 2, 3 | ||
</Text> | ||
<Text | ||
style={ | ||
Array [ | ||
Object { | ||
"color": "red", | ||
}, | ||
] | ||
} | ||
> | ||
Testing, testing, 1, 2, 3 | ||
</Text> | ||
</View> | ||
`; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'] | ||
}; | ||
extends: ['@commitlint/config-conventional'], | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import React from 'react'; | ||
declare module '*.svg' { | ||
import { SvgProps } from 'react-native-svg' | ||
const content: React.FC<SvgProps> | ||
export default content | ||
import { SvgProps } from 'react-native-svg'; | ||
const content: React.FC<SvgProps>; | ||
export default content; | ||
} |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
module.exports = { | ||
preset: 'react-native', | ||
moduleNameMapper: { | ||
'^@/(.*)$': '<rootDir>/$1', | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$', | ||
testPathIgnorePatterns: ['\\.snap$', '<rootDir>/node_modules/'], | ||
transformIgnorePatterns: ['node_modules/?!(static-container)'], | ||
cacheDirectory: '.jest/cache', | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
}, | ||
clearMocks: true, | ||
// setupFiles: ["<rootDir>/jest.setup.js"], | ||
setupFilesAfterEnv: ['./jest.setup.js'], | ||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/node_modules/**'], | ||
}; | ||
preset: 'react-native', | ||
moduleNameMapper: { | ||
'^@/(.*)$': '<rootDir>/$1', | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$', | ||
testPathIgnorePatterns: ['\\.snap$', '<rootDir>/node_modules/'], | ||
transformIgnorePatterns: ['node_modules/?!(static-container)'], | ||
cacheDirectory: '.jest/cache', | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
}, | ||
clearMocks: true, | ||
// setupFiles: ["<rootDir>/jest.setup.js"], | ||
setupFilesAfterEnv: ['./jest.setup.js'], | ||
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/node_modules/**'], | ||
}; |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = { | ||
getTransformModulePath() { | ||
return require.resolve('react-native-typescript-transformer'); | ||
}, | ||
getSourceExts() { | ||
return ['ts', 'tsx']; | ||
} | ||
}; | ||
getTransformModulePath() { | ||
return require.resolve('react-native-typescript-transformer'); | ||
}, | ||
getSourceExts() { | ||
return ['ts', 'tsx']; | ||
}, | ||
}; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export type Bookmark = { | ||
"displayName": String | ||
"description": String | ||
"protocol": "http" | "https" | "ipfs" | "hyper" | "dat" | ||
"location": String | ||
"tags": String[] | ||
} | ||
displayName: String; | ||
description: String; | ||
protocol: 'http' | 'https' | 'ipfs' | 'hyper' | 'dat'; | ||
location: String; | ||
tags: String[]; | ||
}; |
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import 'styled-components/native' | ||
import 'styled-components/native'; | ||
|
||
declare module 'styled-components/native' { | ||
export interface DefaultTheme { | ||
colors: { | ||
scheme: string | ||
text: string | ||
background: string | ||
debug: string | ||
}, | ||
ui: { | ||
background: string | ||
foreground: string | ||
icon: string | ||
}, | ||
addressBar: { | ||
background: string | ||
color: string | ||
} | ||
} | ||
} | ||
export interface DefaultTheme { | ||
colors: { | ||
scheme: string; | ||
text: string; | ||
background: string; | ||
debug: string; | ||
}; | ||
ui: { | ||
background: string; | ||
foreground: string; | ||
icon: string; | ||
}; | ||
addressBar: { | ||
background: string; | ||
color: string; | ||
}; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
import React from 'react' | ||
import { Provider } from 'react-redux' | ||
import { ThemeProvider } from 'styled-components/native' | ||
import React from 'react'; | ||
import { RecoilRoot } from 'recoil'; | ||
import { ThemeProvider } from 'styled-components/native'; | ||
|
||
import store from 'src/store/index' | ||
import AppNavigator from 'src/AppNavigator'; | ||
|
||
import AppNavigator from 'src/AppNavigator' | ||
import lightTheme from 'src/themes/light'; | ||
import darkTheme from 'src/themes/dark'; | ||
|
||
import lightTheme from 'src/themes/light' | ||
import darkTheme from 'src/themes/dark' | ||
|
||
import { isDarkMode } from 'src/utils/appearance' | ||
import { IsDarkMode } from 'src/utils/appearance'; | ||
|
||
export default function App() { | ||
return ( | ||
<> | ||
<ThemeProvider theme={isDarkMode() ? darkTheme : lightTheme}> | ||
<Provider store={store}> | ||
<ThemeProvider theme={IsDarkMode() ? darkTheme : lightTheme}> | ||
<RecoilRoot> | ||
<AppNavigator /> | ||
</Provider> | ||
</RecoilRoot> | ||
</ThemeProvider> | ||
</> | ||
) | ||
); | ||
} |
Oops, something went wrong.