Gathering detailed insights and metrics for @hitbit/expo-svg-transformer
Gathering detailed insights and metrics for @hitbit/expo-svg-transformer
Gathering detailed insights and metrics for @hitbit/expo-svg-transformer
Gathering detailed insights and metrics for @hitbit/expo-svg-transformer
npm install @hitbit/expo-svg-transformer
Typescript
Module System
Node Version
NPM Version
27.7
Supply Chain
43
Quality
70.1
Maintenance
50
Vulnerability
75.2
License
JavaScript (100%)
Total Downloads
10,409
Last Day
1
Last Week
5
Last Month
22
Last Year
427
9 Commits
2 Watchers
3 Branches
1 Contributors
Updated on Nov 11, 2024
Minified
Minified + Gzipped
Latest Version
0.1.0
Package Id
@hitbit/expo-svg-transformer@0.1.0
Unpacked Size
3.06 kB
Size
1.38 kB
File Count
3
NPM Version
10.9.0
Node Version
23.1.0
Published on
Nov 11, 2024
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
66.7%
5
Compared to previous week
Last Month
-56%
22
Compared to previous month
Last Year
-0.5%
427
Compared to previous year
3
3
1expo install react-native-svg 2yarn add --dev @hitbit/expo-svg-transformer @expo/webpack-config
1"packagerOpts": { 2 "config": "metro.config.js", 3 "sourceExts": ["js", "jsx", "ts", "tsx", "svg"] 4}
1const { getDefaultConfig } = require('metro-config'); 2 3module.exports = (async () => { 4 const { resolver: defaultResolver } = await getDefaultConfig(); 5 const { sourceExts, assetExts } = defaultResolver; 6 7 return { 8 transformer: { 9 babelTransformerPath: require.resolve('@hitbit/expo-svg-transformer'), 10 }, 11 resolver: { 12 assetExts: assetExts.filter(ext => ext !== 'svg'), 13 sourceExts: [...sourceExts, 'svg'], 14 }, 15 }; 16})();
1const createExpoWebpackConfigAsync = require('@expo/webpack-config'); 2 3const svgRule = { 4 test: /\.svg$/, 5 exclude: /node_modules/, 6 use: [ 7 'babel-loader', 8 '@hitbit/expo-svg-transformer', 9 ], 10}; 11 12module.exports = async (env, argv) => { 13 const expoWebpackConfig = await createExpoWebpackConfigAsync(env, argv); 14 15 expoWebpackConfig.module.rules[1].oneOf.unshift(svgRule); 16 17 return expoWebpackConfig; 18};
1import React from 'react'; 2import { View } from 'react-native'; 3import Logo from './assets/Logo.svg'; 4 5export default function App() { 6 return ( 7 <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> 8 <Logo height={50} width={50} /> 9 </View> 10 ); 11}
yarn add react-native-svg && yarn add --dev @hitbit/expo-svg-transformer
metro.config.js
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
1 existing vulnerabilities detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More