{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/614","labels_url":"https://api.github.com/repos/facebook/react-native/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/614/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/614/events","html_url":"https://github.com/facebook/react-native/issues/614","id":65833073,"number":614,"title":"[Text] How to replace text string with text component?","user":{"login":"chirag04","id":954063,"avatar_url":"https://avatars.githubusercontent.com/u/954063?v=3","gravatar_id":"","url":"https://api.github.com/users/chirag04","html_url":"https://github.com/chirag04","followers_url":"https://api.github.com/users/chirag04/followers","following_url":"https://api.github.com/users/chirag04/following{/other_user}","gists_url":"https://api.github.com/users/chirag04/gists{/gist_id}","starred_url":"https://api.github.com/users/chirag04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirag04/subscriptions","organizations_url":"https://api.github.com/users/chirag04/orgs","repos_url":"https://api.github.com/users/chirag04/repos","events_url":"https://api.github.com/users/chirag04/events{/privacy}","received_events_url":"https://api.github.com/users/chirag04/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-02T04:21:32Z","updated_at":"2015-09-10T17:16:37Z","closed_at":"2015-09-10T17:16:37Z","body":"Kindof trying to build a syntax highlighting for react-native. I want to replace certain matches with text components to highlight.\r\n\r\neg:\r\n```\r\n<Text style={styles.syntax}>\r\n     {this.props.text.replace(/this/, <Text style={styles.green}>this</Text>)}\r\n</Text>\r\n```\r\n\r\nI'm trying to replace this with highlighted this in the above example but doesn't seem to work."}}