-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rewrite with expo modules (#64)
* feat: reinitialize library with expo modules * chore: remove view files * chore: add missing eslint config * chore(editorconfig): set indent size to 2 * feat(android): create native module * feat(ios): create native module * chore: configurate prettier * feat(module): add types * feat(module): export functions * feat(web): create web module * chore(example): update example * fix(web): fix web module export * chore: update prettier config * chore(web): bump `node-vibrant` to `3.1.6` * feat: change module name * chore: rename `defaultColor` to `fallbackColor` * feat(types): update WebImageColors * docs: update types * docs: update expo installation * feat(example): add web support * chore(example): bump `react-native` version to `0.71.4` * test: add tests * chore: rename prop `fallbackColor` to `fallback` * fix: add missing exports * Update src/types.ts Co-authored-by: Osama Qarem <[email protected]> * chore: bump version to `2.0.0` * feat(android): handle MalformedURLException * feat(android): restore thread pool * chore(android): update `calculateAverageColor` implementation * chore(android): generate palette synchronously * chore(android): optimise `calculateAverageColor` * chore(android): revert resolving promise on main thread * chore(android): cancel service on module destroy * chore(example): bump react native to `0.71.7` * chore(ios): revert resolving promise on main thread * chore: improve npm seo Co-authored-by: Osama Qarem <[email protected]> * chore: add `.npmignore` * fix: add missing dev dependencies * chore: lint project * Update README.md * Update src/index.ts Co-authored-by: Osama Qarem <[email protected]> * chore: export `ImageColorsResult` type * docs: update contribution guide --------- Co-authored-by: Osama Qarem <[email protected]>
- Loading branch information
1 parent
1039b6e
commit 08005f7
Showing
135 changed files
with
11,379 additions
and
12,490 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ root = true | |
[*] | ||
|
||
indent_style = space | ||
indent_size = 4 | ||
indent_size = 2 | ||
|
||
end_of_line = lf | ||
charset = utf-8 | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// @generated by expo-module-scripts | ||
module.exports = require('expo-module-scripts/eslintrc.base.js'); |
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 |
---|---|---|
|
@@ -59,4 +59,7 @@ android/keystores/debug.keystore | |
# generated by bob | ||
lib/ | ||
|
||
*.tgz | ||
*.tgz | ||
|
||
# Jest | ||
.jest/ |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
example | ||
lib/typescript/example | ||
ios/build | ||
ios/ImageColors.xcodeproj/xcuserdata | ||
ios/ImageColors.xcodeproj/project.xcworkspace | ||
android/build/ | ||
android/.gradle | ||
android/.idea | ||
android/app/build | ||
assets | ||
|
||
# Ignore development dependencies and files | ||
/.vscode | ||
/.idea | ||
/.jest | ||
/.github | ||
*.log | ||
|
||
# Ignore common package manager files | ||
node_modules | ||
package-lock.json | ||
yarn.lock | ||
npm-debug.log | ||
|
||
# Ignore miscellaneous files | ||
.DS_Store | ||
*.bak | ||
*.backup | ||
*.swp | ||
*.tmp | ||
*.zip | ||
*.rar | ||
*.tar.gz | ||
*.tgz | ||
*.log |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
quoteProps: 'consistent', | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'es5', | ||
useTabs: false, | ||
semi: false, | ||
} |
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.
Oops, something went wrong.