title: Get data from content provider in React Native
body: <p>Could suggest any solution or code sample to get data from content provider android in React Native.
  Currently, I use 'react-native-fs' but it can not get data from content provider, or i maybe mistake with this library.
  My code</p>
  
  <pre><code>const uriContent = 'content://xxx.provider/info_all'
  const existFile = await RNFS.exists(uriContent)
      if (existFile) {
          const fileContent = await RNFS.readFile(uriContent, 'utf8')
          try {
              const newData = JSON.parse(fileContent)
              // console.log('GOT RESULT UUID', newData.uuid);
              if (newData !== undefined &amp;&amp; newData !== null &amp;&amp;
                  newData.uuid !== undefined &amp;&amp; newData.uuid !== null &amp;&amp; newData.uuid.length &gt; 0) {
                  return newData.uuid
              } else {
                  return ''
              }
          } catch (error) {
              console.log(error.message, error.code)
              return ''
          }
      } else {
          return ''
      }
  </code></pre>