@fluentui-react-native/tester 0.150.4 → 0.151.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +37 -1
- package/CHANGELOG.md +19 -2
- package/lib/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.d.ts +3 -0
- package/lib/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.d.ts.map +1 -0
- package/lib/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.js +31 -0
- package/lib/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.js.map +1 -0
- package/lib/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.js +2 -2
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.d.ts +3 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.d.ts.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.js +36 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.android.js.map +1 -0
- package/lib-commonjs/fluent-tester/src/TestComponents/LinkV1/InlineLinksTest.js +2 -2
- package/package.json +3 -3
- package/src/TestComponents/LinkV1/InlineLinksTest.android.tsx +46 -0
- package/src/TestComponents/LinkV1/InlineLinksTest.tsx +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 03 Jul 2023 06:39:27 GMT",
|
|
6
|
+
"tag": "@fluentui-react-native/tester_v0.151.0",
|
|
7
|
+
"version": "0.151.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "ayushsinghs@yahoo.in",
|
|
12
|
+
"package": "@fluentui-react-native/tester",
|
|
13
|
+
"commit": "6c02816577791c5d071004a225afb91a2359a527",
|
|
14
|
+
"comment": "Fix inline link keyboard access"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui-react-native/tester",
|
|
19
|
+
"comment": "Bump @fluentui/react-native to v0.37.8",
|
|
20
|
+
"commit": "6c02816577791c5d071004a225afb91a2359a527"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 30 Jun 2023 21:37:05 GMT",
|
|
27
|
+
"tag": "@fluentui-react-native/tester_v0.150.5",
|
|
28
|
+
"version": "0.150.5",
|
|
29
|
+
"comments": {
|
|
30
|
+
"patch": [
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui-react-native/tester",
|
|
34
|
+
"comment": "Bump @fluentui-react-native/menu to v1.11.6",
|
|
35
|
+
"commit": "6a6390aa7d8268609ab62b54d158c2d6cd459c9f"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Fri, 30 Jun 2023 06:57:52 GMT",
|
|
6
42
|
"tag": "@fluentui-react-native/tester_v0.150.4",
|
|
7
43
|
"version": "0.150.4",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/tester
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 03 Jul 2023 06:39:27 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.151.0
|
|
8
|
+
|
|
9
|
+
Mon, 03 Jul 2023 06:39:27 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Fix inline link keyboard access (ayushsinghs@yahoo.in)
|
|
14
|
+
- Bump @fluentui/react-native to v0.37.8
|
|
15
|
+
|
|
16
|
+
## 0.150.5
|
|
17
|
+
|
|
18
|
+
Fri, 30 Jun 2023 21:37:05 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- Bump @fluentui-react-native/menu to v1.11.6
|
|
23
|
+
|
|
7
24
|
## 0.150.4
|
|
8
25
|
|
|
9
|
-
Fri, 30 Jun 2023 06:
|
|
26
|
+
Fri, 30 Jun 2023 06:57:52 GMT
|
|
10
27
|
|
|
11
28
|
### Patches
|
|
12
29
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineLinksTest.android.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBA+B/B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, Alert, StyleSheet } from 'react-native';
|
|
3
|
+
import { LinkV1 as Link, TextV1 as Text } from '@fluentui/react-native';
|
|
4
|
+
import { Stack } from '@fluentui-react-native/stack';
|
|
5
|
+
import { stackStyle } from '../Common/styles';
|
|
6
|
+
export var InlineLinks = function () {
|
|
7
|
+
var doPress = React.useCallback(function () { return Alert.alert('Alert.', 'You have been alerted.'); }, []);
|
|
8
|
+
var doA11yTap = React.useCallback(function () { return Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
|
|
9
|
+
return (
|
|
10
|
+
// RN Core has a bug where Text in Text is not keyboard accessible. Issues - #32004, #35194.
|
|
11
|
+
// This is a workaround for the issue. Once those issues are resolved, InlineLinksTest.android.tsx can be removed.
|
|
12
|
+
React.createElement(Stack, { style: stackStyle },
|
|
13
|
+
React.createElement(View, { style: styles.row },
|
|
14
|
+
React.createElement(Text, null, "Click "),
|
|
15
|
+
React.createElement(Link, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
|
|
16
|
+
React.createElement(Text, null, " to alert me.")),
|
|
17
|
+
React.createElement(View, { style: styles.row },
|
|
18
|
+
React.createElement(Text, null, "This "),
|
|
19
|
+
React.createElement(Link, { inline: true, onPress: doPress, disabled: true, focusable: true }, "link"),
|
|
20
|
+
React.createElement(Text, null, " is disabled but focusable.")),
|
|
21
|
+
React.createElement(View, { style: styles.row },
|
|
22
|
+
React.createElement(Text, null, "Follow this "),
|
|
23
|
+
React.createElement(Link, { inline: true, url: "https://www.bing.com/" }, "link"),
|
|
24
|
+
React.createElement(Text, null, " to navigate."))));
|
|
25
|
+
};
|
|
26
|
+
var styles = StyleSheet.create({
|
|
27
|
+
row: {
|
|
28
|
+
flexDirection: 'row',
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=InlineLinksTest.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineLinksTest.android.js","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,IAAM,WAAW,GAA4B;IAClD,IAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,wBAAwB,CAAC,EAA/C,CAA+C,EAAE,EAAE,CAAC,CAAC;IAC7F,IAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,6BAA6B,CAAC,EAApD,CAAoD,EAAE,EAAE,CAAC,CAAC;IAEpG,OAAO;IACL,4FAA4F;IAC5F,kHAAkH;IAClH,oBAAC,KAAK,IAAC,KAAK,EAAE,UAAU;QACtB,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,IAAI,iBAAc;YACnB,oBAAC,IAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,gBAErD;YACP,oBAAC,IAAI,wBAAqB,CACrB;QACP,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,IAAI,gBAAa;YAClB,oBAAC,IAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,QAAC,SAAS,iBAE1C;YACP,oBAAC,IAAI,sCAAmC,CACnC;QACP,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,IAAI,uBAAoB;YACzB,oBAAC,IAAI,IAAC,MAAM,QAAC,GAAG,EAAC,uBAAuB,WAEjC;YACP,oBAAC,IAAI,wBAAqB,CACrB,CACD,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC"}
|
|
@@ -5,12 +5,12 @@ import { Stack } from '@fluentui-react-native/stack';
|
|
|
5
5
|
import { stackStyle } from '../Common/styles';
|
|
6
6
|
export var InlineLinks = function () {
|
|
7
7
|
var doPress = React.useCallback(function () { return Alert.alert('Alert.', 'You have been alerted.'); }, []);
|
|
8
|
-
var
|
|
8
|
+
var doA11yTap = React.useCallback(function () { return Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
|
|
9
9
|
return (React.createElement(Stack, { style: stackStyle },
|
|
10
10
|
React.createElement(Text, null,
|
|
11
11
|
"Click",
|
|
12
12
|
' ',
|
|
13
|
-
React.createElement(Link, { inline: true, onPress: doPress, onAccessibilityTap:
|
|
13
|
+
React.createElement(Link, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
|
|
14
14
|
' ',
|
|
15
15
|
"to alert me."),
|
|
16
16
|
React.createElement(Text, null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineLinksTest.android.d.ts","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,iBA+B/B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InlineLinks = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var React = tslib_1.__importStar(require("react"));
|
|
6
|
+
var react_native_1 = require("react-native");
|
|
7
|
+
var react_native_2 = require("@fluentui/react-native");
|
|
8
|
+
var stack_1 = require("@fluentui-react-native/stack");
|
|
9
|
+
var styles_1 = require("../Common/styles");
|
|
10
|
+
var InlineLinks = function () {
|
|
11
|
+
var doPress = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have been alerted.'); }, []);
|
|
12
|
+
var doA11yTap = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
|
|
13
|
+
return (
|
|
14
|
+
// RN Core has a bug where Text in Text is not keyboard accessible. Issues - #32004, #35194.
|
|
15
|
+
// This is a workaround for the issue. Once those issues are resolved, InlineLinksTest.android.tsx can be removed.
|
|
16
|
+
React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
|
|
17
|
+
React.createElement(react_native_1.View, { style: styles.row },
|
|
18
|
+
React.createElement(react_native_2.TextV1, null, "Click "),
|
|
19
|
+
React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
|
|
20
|
+
React.createElement(react_native_2.TextV1, null, " to alert me.")),
|
|
21
|
+
React.createElement(react_native_1.View, { style: styles.row },
|
|
22
|
+
React.createElement(react_native_2.TextV1, null, "This "),
|
|
23
|
+
React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, disabled: true, focusable: true }, "link"),
|
|
24
|
+
React.createElement(react_native_2.TextV1, null, " is disabled but focusable.")),
|
|
25
|
+
React.createElement(react_native_1.View, { style: styles.row },
|
|
26
|
+
React.createElement(react_native_2.TextV1, null, "Follow this "),
|
|
27
|
+
React.createElement(react_native_2.LinkV1, { inline: true, url: "https://www.bing.com/" }, "link"),
|
|
28
|
+
React.createElement(react_native_2.TextV1, null, " to navigate."))));
|
|
29
|
+
};
|
|
30
|
+
exports.InlineLinks = InlineLinks;
|
|
31
|
+
var styles = react_native_1.StyleSheet.create({
|
|
32
|
+
row: {
|
|
33
|
+
flexDirection: 'row',
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=InlineLinksTest.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineLinksTest.android.js","sourceRoot":"","sources":["../../../../../src/TestComponents/LinkV1/InlineLinksTest.android.tsx"],"names":[],"mappings":";;;;AAAA,mDAA+B;AAC/B,6CAAuD;AAEvD,uDAAwE;AACxE,sDAAqD;AAErD,2CAA8C;AAEvC,IAAM,WAAW,GAA4B;IAClD,IAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,oBAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,wBAAwB,CAAC,EAA/C,CAA+C,EAAE,EAAE,CAAC,CAAC;IAC7F,IAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,cAAM,OAAA,oBAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,6BAA6B,CAAC,EAApD,CAAoD,EAAE,EAAE,CAAC,CAAC;IAEpG,OAAO;IACL,4FAA4F;IAC5F,kHAAkH;IAClH,oBAAC,aAAK,IAAC,KAAK,EAAE,mBAAU;QACtB,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,qBAAI,iBAAc;YACnB,oBAAC,qBAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,gBAErD;YACP,oBAAC,qBAAI,wBAAqB,CACrB;QACP,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,qBAAI,gBAAa;YAClB,oBAAC,qBAAI,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,QAAC,SAAS,iBAE1C;YACP,oBAAC,qBAAI,sCAAmC,CACnC;QACP,oBAAC,mBAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACrB,oBAAC,qBAAI,uBAAoB;YACzB,oBAAC,qBAAI,IAAC,MAAM,QAAC,GAAG,EAAC,uBAAuB,WAEjC;YACP,oBAAC,qBAAI,wBAAqB,CACrB,CACD,CACT,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,WAAW,eA+BtB;AAEF,IAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE;QACH,aAAa,EAAE,KAAK;KACrB;CACF,CAAC,CAAC"}
|
|
@@ -9,12 +9,12 @@ var stack_1 = require("@fluentui-react-native/stack");
|
|
|
9
9
|
var styles_1 = require("../Common/styles");
|
|
10
10
|
var InlineLinks = function () {
|
|
11
11
|
var doPress = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have been alerted.'); }, []);
|
|
12
|
-
var
|
|
12
|
+
var doA11yTap = React.useCallback(function () { return react_native_1.Alert.alert('Alert.', 'You have invoked onA11yTap.'); }, []);
|
|
13
13
|
return (React.createElement(stack_1.Stack, { style: styles_1.stackStyle },
|
|
14
14
|
React.createElement(react_native_2.TextV1, null,
|
|
15
15
|
"Click",
|
|
16
16
|
' ',
|
|
17
|
-
React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, onAccessibilityTap:
|
|
17
|
+
React.createElement(react_native_2.LinkV1, { inline: true, onPress: doPress, onAccessibilityTap: doA11yTap }, "this link"),
|
|
18
18
|
' ',
|
|
19
19
|
"to alert me."),
|
|
20
20
|
React.createElement(react_native_2.TextV1, null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/tester",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.151.0",
|
|
4
4
|
"description": "A test app to test FluentUI React Native Components during development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft <fluentuinativeowners@microsoft.com>",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@fluentui-react-native/input": "^0.3.4",
|
|
59
59
|
"@fluentui-react-native/drawer": "^0.2.3",
|
|
60
60
|
"@fluentui-react-native/interactive-hooks": ">=0.24.2 <1.0.0",
|
|
61
|
-
"@fluentui-react-native/menu": "^1.11.
|
|
61
|
+
"@fluentui-react-native/menu": "^1.11.6",
|
|
62
62
|
"@fluentui-react-native/merge-props": ">=0.7.0 <1.0.0",
|
|
63
63
|
"@fluentui-react-native/notification": "0.23.4",
|
|
64
64
|
"@fluentui-react-native/radio-group": ">=0.18.3 <1.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@fluentui-react-native/themed-stylesheet": "^1.5.1",
|
|
75
75
|
"@fluentui-react-native/theming-utils": ">=0.24.0 <1.0.0",
|
|
76
76
|
"@fluentui-react-native/win32-theme": ">=0.26.1 <1.0.0",
|
|
77
|
-
"@fluentui/react-native": ">=0.37.
|
|
77
|
+
"@fluentui/react-native": ">=0.37.8 <1.0.0",
|
|
78
78
|
"@fortawesome/fontawesome-svg-core": "^6.2.0",
|
|
79
79
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
80
80
|
"@fortawesome/react-native-fontawesome": "^0.3.0",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { View, Alert, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { LinkV1 as Link, TextV1 as Text } from '@fluentui/react-native';
|
|
5
|
+
import { Stack } from '@fluentui-react-native/stack';
|
|
6
|
+
|
|
7
|
+
import { stackStyle } from '../Common/styles';
|
|
8
|
+
|
|
9
|
+
export const InlineLinks: React.FunctionComponent = () => {
|
|
10
|
+
const doPress = React.useCallback(() => Alert.alert('Alert.', 'You have been alerted.'), []);
|
|
11
|
+
const doA11yTap = React.useCallback(() => Alert.alert('Alert.', 'You have invoked onA11yTap.'), []);
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
// RN Core has a bug where Text in Text is not keyboard accessible. Issues - #32004, #35194.
|
|
15
|
+
// This is a workaround for the issue. Once those issues are resolved, InlineLinksTest.android.tsx can be removed.
|
|
16
|
+
<Stack style={stackStyle}>
|
|
17
|
+
<View style={styles.row}>
|
|
18
|
+
<Text>Click </Text>
|
|
19
|
+
<Link inline onPress={doPress} onAccessibilityTap={doA11yTap}>
|
|
20
|
+
this link
|
|
21
|
+
</Link>
|
|
22
|
+
<Text> to alert me.</Text>
|
|
23
|
+
</View>
|
|
24
|
+
<View style={styles.row}>
|
|
25
|
+
<Text>This </Text>
|
|
26
|
+
<Link inline onPress={doPress} disabled focusable>
|
|
27
|
+
link
|
|
28
|
+
</Link>
|
|
29
|
+
<Text> is disabled but focusable.</Text>
|
|
30
|
+
</View>
|
|
31
|
+
<View style={styles.row}>
|
|
32
|
+
<Text>Follow this </Text>
|
|
33
|
+
<Link inline url="https://www.bing.com/">
|
|
34
|
+
link
|
|
35
|
+
</Link>
|
|
36
|
+
<Text> to navigate.</Text>
|
|
37
|
+
</View>
|
|
38
|
+
</Stack>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const styles = StyleSheet.create({
|
|
43
|
+
row: {
|
|
44
|
+
flexDirection: 'row',
|
|
45
|
+
},
|
|
46
|
+
});
|
|
@@ -8,13 +8,13 @@ import { stackStyle } from '../Common/styles';
|
|
|
8
8
|
|
|
9
9
|
export const InlineLinks: React.FunctionComponent = () => {
|
|
10
10
|
const doPress = React.useCallback(() => Alert.alert('Alert.', 'You have been alerted.'), []);
|
|
11
|
-
const
|
|
11
|
+
const doA11yTap = React.useCallback(() => Alert.alert('Alert.', 'You have invoked onA11yTap.'), []);
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<Stack style={stackStyle}>
|
|
15
15
|
<Text>
|
|
16
16
|
Click{' '}
|
|
17
|
-
<Link inline onPress={doPress} onAccessibilityTap={
|
|
17
|
+
<Link inline onPress={doPress} onAccessibilityTap={doA11yTap}>
|
|
18
18
|
this link
|
|
19
19
|
</Link>{' '}
|
|
20
20
|
to alert me.
|