diff --git a/change/react-native-windows-2019-12-17-13-09-03-textborder.json b/change/react-native-windows-2019-12-17-13-09-03-textborder.json new file mode 100644 index 00000000000..ff3bdaabcef --- /dev/null +++ b/change/react-native-windows-2019-12-17-13-09-03-textborder.json @@ -0,0 +1,8 @@ +{ + "type": "prerelease", + "comment": "Fix cornerRadius issue for TextInput and some updates to TreeDump", + "packageName": "react-native-windows", + "email": "dida@ntdev.microsoft.com", + "commit": "d2ab5205ec27f1784a54a82236c54b9c13531412", + "date": "2019-12-17T21:09:02.950Z" +} \ No newline at end of file diff --git a/packages/E2ETest/.gitignore b/packages/E2ETest/.gitignore index b9083bb8d72..8c596417d78 100644 --- a/packages/E2ETest/.gitignore +++ b/packages/E2ETest/.gitignore @@ -3,4 +3,5 @@ /build /reports /dist -/windows/ReactUWPTestApp/Bundle/ \ No newline at end of file +/windows/ReactUWPTestApp/Bundle/ +msbuild.binlog \ No newline at end of file diff --git a/packages/E2ETest/app/Consts.ts b/packages/E2ETest/app/Consts.ts index d8f29264284..1a5e46cc5ab 100644 --- a/packages/E2ETest/app/Consts.ts +++ b/packages/E2ETest/app/Consts.ts @@ -38,3 +38,7 @@ export const IMAGE_TESTPAGE = 'ImageTestPage'; export const IMAGE_CHANGE_BORDER = 'ChangeBorder'; export const SHOW_IMAGE_BORDER = 'BorderButton'; export const IMAGE_CONTAINER = 'ImageContainer'; + +// Control Style Test Page +export const CONTROL_STYLE_TESTPAGE = 'ControlStyleTestPage'; +export const SHOWBORDER_ON_CONTROLSTYLE = 'ShowBorder'; diff --git a/packages/E2ETest/app/ControlStyleTestPage.tsx b/packages/E2ETest/app/ControlStyleTestPage.tsx new file mode 100644 index 00000000000..62686dcf729 --- /dev/null +++ b/packages/E2ETest/app/ControlStyleTestPage.tsx @@ -0,0 +1,82 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */ + +import { Switch, CheckBox, TextInput, View, StyleSheet, Button } from 'react-native'; +import { DatePicker, Picker } from 'react-native-windows'; +import React, { useState } from 'react'; +import { SHOWBORDER_ON_CONTROLSTYLE, TREE_DUMP_RESULT } from './Consts'; +import { TreeDumpControl } from './TreeDumpControl' + +const styles = StyleSheet.create({ + container: { + padding: 20 + }, + regularBorder: { + height: 50, + backgroundColor: 'rgba(225,225,225,0.2)', + borderWidth:1, + borderColor: '#ff00ff55', + marginBottom: 10, + padding: 10, + color: '#fff' + }, + roundBorder: { + height: 50, + backgroundColor: 'rgba(0,0,0,0.2)', + marginBottom: 10, + padding: 10, + color: '#000', + borderRadius: 10.0, + borderWidth:10, + borderColor: '#00ff0055', + }, + buttonText: { + color: '#fff', + textAlign: 'center', + fontWeight: '700', + borderRadius: 10.0, + }, + treeDumpControl: { + height: 150, + width: 500, + margin: 10, + }, +}); + +export function ControlStyleTestPage() { + const [showRoundBorder, setShowRoundBorder] = useState(false); + + const onPressShowRoundBorder = () => { + var previousState = showRoundBorder; + setShowRoundBorder(!previousState); + } + + return ( + + + + + + + + + + + +