Skip to content

Commit

Permalink
always install react-native-file-access
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Sep 13, 2024
1 parent 917d1a8 commit 8a46d4f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/react-native-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module.exports = {
const registryUrl = process.env.REGISTRY_URL

const jsSourceDir = process.env.JS_SOURCE_DIR || 'scenario_js'
const installRNFileAccess = jsSourceDir === 'scenario_js'

let artefactName = rnVersion
if (process.env.ARTEFACT_NAME) {
Expand All @@ -37,10 +36,8 @@ module.exports = {
common.run(command, true)

// Install react-native-file-access
if (installRNFileAccess) {
const RNFACommand = `npm install react-native-file-access@3.0.4 --registry ${registryUrl}`
common.run(RNFACommand, true)
}
const RNFACommand = `npm install react-native-file-access@3.0.4 --registry ${registryUrl}`
common.run(RNFACommand, true)

// Install any required secondary files
if (fs.existsSync('./install.sh')) {
Expand Down

0 comments on commit 8a46d4f

Please sign in to comment.