🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

expo-custom-assets

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-custom-assets

Expo plugin to add custom assets to native codebase

latest
Source
npmnpm
Version
1.5.0
Version published
Weekly downloads
7.9K
-5.58%
Maintainers
5
Weekly downloads
 
Created
Source

expo-custom-assets

Expo plugin to add custom assets to xcode and android studio to allow the usage of it as local files for projects like Rive

Demo

https://github.com/Malaa-tech/expo-custom-assets/assets/43112535/2a6de948-d3e9-4362-925f-3a3c786016b1

API documentation

  • This plugin requires assets path only nothing more

Add the package to your npm dependencies

npm install expo-custom-assets
yarn add expo-custom-assets
pnpm install expo-custom-assets
bun install expo-custom-assets

Installation in managed Expo projects

For managed Expo projects

  • After installing the package through npm add the plugin to your app.json
    "plugins": [
      [
        "expo-custom-assets",
        {
          // Add asset directory paths, the plugin copies the files in the given paths to the app bundle folder named Assets
          "assetsPaths": ["./path-to-your-asset-folder"]
          // if you want custom assets directory name use this prop (default: "Assets")
          // "assetsDirName": "testName"
          // if you want to ignore some files use this prop (default: "")
          // "ignoredPattern": ".png$"
          // if you want to preserve the folder structure use this prop (default: false)
          // "preserveFolder": true
        }
      ]
    ]

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.

Contributing

Contributions are very welcome! we have some things to do in our Todo's

Todo's

  • Stop creating Assets folder in it exist
  • Allow for custom asset folder name
  • Fix typescript error when building the package
  • Add more example for other custom assets other than Rive

Credits

Keywords

react

FAQs

Package last updated on 05 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts