Skip to content

Commit 4695128

Browse files
committed
improve error UI
1 parent e64f279 commit 4695128

File tree

16 files changed

+515
-323
lines changed

16 files changed

+515
-323
lines changed

.prettierrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module.exports = {
22
plugins: [require('@ianvs/prettier-plugin-sort-imports')],
33
bracketSpacing: true,
4-
jsxBracketSameLine: true,
54
singleQuote: true,
65
trailingComma: 'all',
76
arrowParens: 'avoid',

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"repository": "https://github.com/FormidableLabs/react-native-ama.git",
77
"homepage": "https://commerce.nearform.com/open-source/react-native-ama/",
88
"scripts": {
9-
"playground": "yarn --cwd playground",
10-
"playground:ios": "yarn --cwd playground run ios",
9+
"playground": "cd playground && yarn start",
10+
"playground:ios": "cd playground && yarn ios",
11+
"playground:android": "cd playground && yarn android",
1112
"build:animations": "yarn workspace @react-native-ama/animations build",
1213
"build:core": "yarn workspace @react-native-ama/core build",
1314
"build:extras": "yarn workspace @react-native-ama/extras build",

packages/core/android/src/debug/java/expo/modules/ama/a11yChecker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class A11yChecker(private val appContext: AppContext, private val config: AMACon
217217

218218
private fun checkForMinimumTargetSize(view: View) {
219219
if (view.width < 48 || view.height < 48) {
220-
Logger.error("checkView", "Small touch target")
220+
Logger.info("checkView", "Small touch target")
221221

222222
addIssue(
223223
rule = Rule.MINIMUM_SIZE,

packages/core/ios/A11yChecker.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ public class A11yChecker {
211211
}
212212

213213
private func checkForMinimumTargetArea(_ view: UIView) {
214+
Logger.info("checkForMinimumTargetArea", "\(view.bounds.width) \(view.bounds.height)")
214215
if view.isPressable && (view.bounds.width < 48 || view.bounds.height < 48) {
215216
addIssue(
216217
rule: .minimumSize,

packages/core/src/ReactNativeAmaView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { requireNativeView } from 'expo';
22
import * as React from 'react';
33
import { ReactNativeAmaViewProps } from './ReactNativeAma.types';
44

5-
const NativeView: React.ComponentType<ReactNativeAmaViewProps> =
6-
requireNativeView('ReactNativeAma');
5+
const NativeView: React.ComponentType = requireNativeView('ReactNativeAma');
76

87
export default function ReactNativeAmaView(props: ReactNativeAmaViewProps) {
98
return <NativeView {...props} />;

0 commit comments

Comments
 (0)