diff --git a/change/@fluentui-react-native-checkbox-3f2687da-e979-4cb7-a540-bbf5e1504ace.json b/change/@fluentui-react-native-checkbox-3f2687da-e979-4cb7-a540-bbf5e1504ace.json
new file mode 100644
index 0000000000..b2903b036c
--- /dev/null
+++ b/change/@fluentui-react-native-checkbox-3f2687da-e979-4cb7-a540-bbf5e1504ace.json
@@ -0,0 +1,7 @@
+{
+ "type": "patch",
+ "comment": "Update config",
+ "packageName": "@fluentui-react-native/checkbox",
+ "email": "ruaraki@microsoft.com",
+ "dependentChangeType": "patch"
+}
diff --git a/change/@fluentui-react-native-switch-6a6b040c-16f3-474b-a7b4-e585b8fb8f6d.json b/change/@fluentui-react-native-switch-6a6b040c-16f3-474b-a7b4-e585b8fb8f6d.json
new file mode 100644
index 0000000000..6470312175
--- /dev/null
+++ b/change/@fluentui-react-native-switch-6a6b040c-16f3-474b-a7b4-e585b8fb8f6d.json
@@ -0,0 +1,7 @@
+{
+ "type": "patch",
+ "comment": "Update config",
+ "packageName": "@fluentui-react-native/switch",
+ "email": "ruaraki@microsoft.com",
+ "dependentChangeType": "patch"
+}
diff --git a/packages/components/Checkbox/jest.config.js b/packages/components/Checkbox/jest.config.js
new file mode 100644
index 0000000000..f6813bad78
--- /dev/null
+++ b/packages/components/Checkbox/jest.config.js
@@ -0,0 +1,2 @@
+const { configureReactNativeJest } = require('@fluentui-react-native/scripts');
+module.exports = configureReactNativeJest('win32');
diff --git a/packages/components/Checkbox/src/__tests__/__snapshots__/Checkbox.test.tsx.snap b/packages/components/Checkbox/src/__tests__/__snapshots__/Checkbox.test.tsx.snap
index 1983da7421..cae2ab4efd 100644
--- a/packages/components/Checkbox/src/__tests__/__snapshots__/Checkbox.test.tsx.snap
+++ b/packages/components/Checkbox/src/__tests__/__snapshots__/Checkbox.test.tsx.snap
@@ -20,16 +20,25 @@ exports[`Checkbox component tests Checkbox all props 1`] = `
}
accessible={true}
defaultChecked={true}
- disabled={true}
enableFocusRing={true}
focusable={false}
+ keyUpEvents={
+ Array [
+ Object {
+ "key": " ",
+ },
+ ]
+ }
labelPosition="before"
onAccessibilityAction={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onFocus={[Function]}
- onPress={[Function]}
+ onKeyDown={[Function]}
+ onKeyUp={[Function]}
+ onMouseEnter={[Function]}
+ onMouseLeave={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
@@ -52,20 +61,26 @@ exports[`Checkbox component tests Checkbox all props 1`] = `
}
>
All Props Checkbox
@@ -298,19 +361,30 @@ exports[`Checkbox component tests Checkbox composed 1`] = `
}
}
accessible={true}
+ android_ripple={
+ Object {
+ "color": undefined,
+ "foreground": true,
+ }
+ }
enableFocusRing={true}
focusable={true}
+ keyUpEvents={
+ Array [
+ Object {
+ "key": " ",
+ },
+ ]
+ }
onAccessibilityAction={[Function]}
onBlur={[Function]}
- onClick={[Function]}
onFocus={[Function]}
+ onHoverIn={[Function]}
+ onHoverOut={[Function]}
+ onKeyUp={[Function]}
onPress={[Function]}
- onResponderGrant={[Function]}
- onResponderMove={[Function]}
- onResponderRelease={[Function]}
- onResponderTerminate={[Function]}
- onResponderTerminationRequest={[Function]}
- onStartShouldSetResponder={[Function]}
+ onPressIn={[Function]}
+ onPressOut={[Function]}
style={
Object {
"alignItems": "center",
@@ -320,16 +394,26 @@ exports[`Checkbox component tests Checkbox composed 1`] = `
"display": "flex",
"flexDirection": "row",
"padding": 8,
- "paddingHorizontal": undefined,
+ "paddingHorizontal": 12,
}
}
>
@@ -427,12 +513,22 @@ exports[`Checkbox component tests Checkbox default 1`] = `
defaultChecked={false}
enableFocusRing={true}
focusable={true}
+ keyUpEvents={
+ Array [
+ Object {
+ "key": " ",
+ },
+ ]
+ }
onAccessibilityAction={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onFocus={[Function]}
- onPress={[Function]}
+ onKeyDown={[Function]}
+ onKeyUp={[Function]}
+ onMouseEnter={[Function]}
+ onMouseLeave={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
@@ -448,16 +544,31 @@ exports[`Checkbox component tests Checkbox default 1`] = `
"display": "flex",
"flexDirection": "row",
"padding": 8,
- "paddingHorizontal": undefined,
+ "paddingHorizontal": 12,
}
}
>
@@ -555,12 +667,22 @@ exports[`Checkbox component tests Checkbox no label 1`] = `
defaultChecked={false}
enableFocusRing={true}
focusable={true}
+ keyUpEvents={
+ Array [
+ Object {
+ "key": " ",
+ },
+ ]
+ }
onAccessibilityAction={[Function]}
onBlur={[Function]}
onChange={[Function]}
onClick={[Function]}
onFocus={[Function]}
- onPress={[Function]}
+ onKeyDown={[Function]}
+ onKeyUp={[Function]}
+ onMouseEnter={[Function]}
+ onMouseLeave={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
@@ -581,11 +703,26 @@ exports[`Checkbox component tests Checkbox no label 1`] = `
}
>
@@ -84,12 +101,11 @@ exports[`Switch Default 1`] = `
animationClass="Ribbon_SwitchThumb"
style={
Object {
- "backgroundColor": "#ffffff",
- "borderRadius": 100,
- "elevation": 8,
- "height": 26,
- "margin": 3,
- "width": 26,
+ "backgroundColor": "#616161",
+ "borderRadius": 17,
+ "height": 14,
+ "margin": 2,
+ "width": 14,
}
}
/>
@@ -116,12 +132,25 @@ exports[`Switch Disabled 1`] = `
}
}
accessible={true}
- collapsable={false}
focusable={false}
+ keyUpEvents={
+ Array [
+ Object {
+ "key": " ",
+ },
+ Object {
+ "key": "Enter",
+ },
+ ]
+ }
onAccessibilityAction={[Function]}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
+ onKeyDown={[Function]}
+ onKeyUp={[Function]}
+ onMouseEnter={[Function]}
+ onMouseLeave={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
@@ -132,20 +161,22 @@ exports[`Switch Disabled 1`] = `
Object {
"alignItems": "center",
"alignSelf": "flex-start",
- "borderColor": undefined,
- "borderRadius": undefined,
- "borderWidth": undefined,
+ "borderColor": "transparent",
+ "borderRadius": 4,
+ "borderWidth": 2,
"flexDirection": "row-reverse",
- "minHeight": undefined,
- "minWidth": undefined,
+ "minHeight": 28,
+ "minWidth": 40,
+ "padding": 2,
}
}
>
@@ -182,12 +215,11 @@ exports[`Switch Disabled 1`] = `
animationClass="Ribbon_SwitchThumb"
style={
Object {
- "backgroundColor": "#ffffff",
- "borderRadius": 100,
- "elevation": 0,
- "height": 26,
- "margin": 3,
- "width": 26,
+ "backgroundColor": "#e0e0e0",
+ "borderRadius": 17,
+ "height": 14,
+ "margin": 2,
+ "width": 14,
}
}
/>