Skip to content

Commit

Permalink
Pass in opts.native argument as options to react-native transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
edpaget committed Apr 6, 2019
1 parent 4b48f4c commit e86ae78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-preset/src/index.js
Expand Up @@ -89,8 +89,8 @@ const plugin = (api, opts) => {
plugins.push(svgDynamicTitle)
}

if (opts.native || opts.expo) {
plugins.push([transformReactNativeSVG, { expo: !!opts.expo }])
if (opts.native) {
plugins.push([transformReactNativeSVG, opts.native])
}

return { plugins }
Expand Down

0 comments on commit e86ae78

Please sign in to comment.