diff --git a/package.json b/package.json index de991565f..c3ee0d619 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "react-native": "0.48.1", "react-native-actionsheet": "^2.2.0", "react-native-code-push": "^5.0.0-beta", + "react-native-collapsible": "^0.9.0", "react-native-communications": "^2.2.1", "react-native-config": "^0.6.0", "react-native-cookies": "^3.2.0", diff --git a/src/components/github-htmlview.component.js b/src/components/github-htmlview.component.js index 416dad7ac..4c1e25461 100644 --- a/src/components/github-htmlview.component.js +++ b/src/components/github-htmlview.component.js @@ -6,7 +6,7 @@ import SyntaxHighlighter from 'react-native-syntax-highlighter'; import { github as GithubStyle } from 'react-syntax-highlighter/dist/styles'; import entities from 'entities'; -import { ImageZoom } from 'components'; +import { ImageZoom, ToggleView } from 'components'; import { colors, fonts, normalize } from 'config'; const textStyle = Platform.select({ @@ -65,6 +65,16 @@ const styles = { a: linkStyle, }; +const quotedEmailToggleStyle = { + backgroundColor: colors.greyMid, + paddingHorizontal: 4, + alignSelf: 'flex-start', + height: 15, + lineHeight: 12, + marginBottom: 6, + marginTop: 3, +}; + const styleSheet = StyleSheet.create(styles); const { width } = Dimensions.get('window'); @@ -176,6 +186,11 @@ export class GithubHtmlView extends Component { /
  • (]*>)? ?\.? ?/g, '$1✅ ' ) + // Quoted email reply + .replace( + /