Skip to content

Instantly share code, notes, and snippets.

@naishe
Created October 15, 2021 11:45
Show Gist options
  • Save naishe/cbe9c3e835af01f8b01d22491e7e12c5 to your computer and use it in GitHub Desktop.
Save naishe/cbe9c3e835af01f8b01d22491e7e12c5 to your computer and use it in GitHub Desktop.
fetch version from package.json
{/** Relative path of package.json from the component */}
<Text>{require('../../package.json').version}</Text>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment