Skip to content

Fix/metro exports and hook import #326

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .changeset/tame-beers-pretend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@react-native-ama/react-native': minor
'@react-native-ama/animations': minor
'@react-native-ama/internal': minor
'@react-native-ama/extras': minor
'@react-native-ama/forms': minor
'@react-native-ama/lists': minor
'@react-native-ama/core': minor
---

Updates package exports for metro
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
extends: ['@react-native'],
extends: ['@react-native', 'plugin:jest/recommended'],
plugins: ['jest', 'import'],
env: {
browser: true,
Expand All @@ -9,6 +9,7 @@ module.exports = {
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'react-hooks/rules-of-hooks': 'off',
'@typescript-eslint/func-call-spacing': 'off',
},
parserOptions: {
project: ['./tsconfig.json'],
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ coverage
!.yarn/releases
!.yarn/sdks
!.yarn/versions
example/.yarn
playground/.yarn/cache/
15 changes: 7 additions & 8 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
module.exports = {
bracketSpacing: true,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
importOrder: ['<THIRD_PARTY_MODULES>', '^~(.*)/(.*)$', '^[./]'],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
plugins: [require('@ianvs/prettier-plugin-sort-imports')],
bracketSpacing: true,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
importOrder: ['<THIRD_PARTY_MODULES>', '^~(.*)/(.*)$', '^[./]'],
parser: 'typescript',
};
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ export const App = () => {
};
```

### Playground

You can use the playground app within this repository to see how AMA checks work in practice.
The playground can also be used to learn how to fix accessibility issues in your app.


## 📃 [Documentation](https://commerce.nearform.com/open-source/react-native-ama)

The documentation contains everything you need to know about `@react-native-ama/...`. It contains several sections in order of importance when you first get started:
Expand Down
8 changes: 0 additions & 8 deletions examples/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions examples/bare/.bundle/config

This file was deleted.

4 changes: 0 additions & 4 deletions examples/bare/.eslintrc.js

This file was deleted.

75 changes: 0 additions & 75 deletions examples/bare/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions examples/bare/.prettierrc.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/bare/.watchmanconfig

This file was deleted.

13 changes: 0 additions & 13 deletions examples/bare/CHANGELOG.md

This file was deleted.

9 changes: 0 additions & 9 deletions examples/bare/Gemfile

This file was deleted.

100 changes: 0 additions & 100 deletions examples/bare/Gemfile.lock

This file was deleted.

35 changes: 0 additions & 35 deletions examples/bare/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions examples/bare/__tests__/App.test.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions examples/bare/android/app/src/main/AndroidManifest.xml

This file was deleted.

Loading
Loading