From 8159b2cd2a32f81ef0421386e454fa049cc8c54f Mon Sep 17 00:00:00 2001 From: Sokovikov Date: Tue, 17 Jan 2017 17:39:41 -0800 Subject: [PATCH] return stacktrace button in yellow box Summary: **motivation** return button which shows stacktrace in yellow box. **Test plan (required)** Closes https://github.com/facebook/react-native/pull/11908 Differential Revision: D4424824 Pulled By: mmmulani fbshipit-source-id: db4b33423fd839216286adb40a65417949c0073a --- Libraries/ReactNative/YellowBox.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Libraries/ReactNative/YellowBox.js b/Libraries/ReactNative/YellowBox.js index 0a5e1b51c..a43e7a442 100644 --- a/Libraries/ReactNative/YellowBox.js +++ b/Libraries/ReactNative/YellowBox.js @@ -231,13 +231,9 @@ const WarningInspector = ({ {countSentence} - + - {stacktraceVisible ? 'Hide' : 'Show'} Stacktrace + {stacktraceVisible ? '▼' : '▶' } Stacktrace @@ -415,10 +411,6 @@ var styles = StyleSheet.create({ paddingVertical: 22, backgroundColor: backgroundColor(1), }, - toggleStacktraceButton: { - flex: 1, - padding: 5, - }, stacktraceList: { paddingBottom: 5, }, @@ -435,6 +427,8 @@ var styles = StyleSheet.create({ inspectorCount: { padding: 15, paddingBottom: 0, + flexDirection: 'row', + justifyContent: 'space-between', }, inspectorCountText: { color: textColor,