Issues are arising with the functionality of React-native link

After attempting to install and connect react-native sound in my project, I encountered an issue. When executing the following command within my project directory,

react-native link react-native-sound

the library fails to link and instead returns the following message:

Scanning 758 folders for symlinks in /Users/MY_USER_NAME/PROJECT_NAME/node_modules 

This leads me to believe that there may be a problem with my node or npm setup.

Answer №1

Step 1: Start by creating a new file in the root of your project and name it react-native.config.js

Step 2: Add the following code to the newly created react-native.config.js:

module.exports = {
    project: {
      ios: {},
      android: {},
    },
    assets: ['./src/assets/fonts/'],
};

Step 3: Customize the path in ['./src/assets/fonts/'] to match your font directory

Step 4: Finally, execute react-native link to complete the process

And you're done!

Answer №3

If you're using the most recent version of react-native-cli, all you need to do is:

npx react-native-asset

Answer №4

When I encountered a similar problem while linking an npm package, I found that closing the react native android project in android studio (where I was attempting to link the npm repository) worked like a charm for me.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The Twitch API is providing inaccurate channel information

Currently facing an issue while working with the Twitch API. When making a GET request to /api.twitch.tv/helix/search/channels?query=[STREAMER_NAME], it seems to be returning the wrong streamer/user. For instance: /api.twitch.tv/helix/search/channels?quer ...

Is there a way to retrieve data from three different Bookshelf.js models in a single query?

Three tables are in my database: User, UserDrink, and VenueDrink Here is a preview of the sample data: User id | name | gender | -------------------- 1 | John | male | 2 | Jane | female | UserDrink id | count | user_id | venue_drink_id 1 | 3 | ...

Can you explain what vercel is trying to convey with the message "Invalid request: should NOT have additional property `route`. Please remove it"?

I'm unsure about this I'm not entirely sure what that signifies. I've checked to see if it pertains to my route folder or something else, but I'm still confused. Can someone please assist me in understanding this? ChatGPT hasn't p ...

Error Message: Unexpected Type Error with axios in Vue 3

Trying to implement axios in my Vue3 project for fetching APIs. Here is the code snippet from my component: export default { name: "Step2", data() { return { loading: true; }; }, mounted() { this.loading = false; }, ...

Tips for resolving the error "Encountered duplicate registration of views named RNGestureHandlerButton" in ReactNative

Seeking guidance on implementing a Swipe-to-Delete feature in my App, I manually installed the react-native-gesture-handler. This action triggered an error message which persists even after attempting to uninstall the gesture handler. Any suggestions or so ...

When deploying my website on Heroku, I utilize mongoose.connect().'

After successfully setting up node.js, npm, mongodb, and mongoose to develop a website with a database locally, I utilized mongoose.connect('mongodb://localhost/test') without any issues. Everything was functioning as expected. However, upon att ...

Optimal method for handling short-term local alterations to npm dependencies during development

When working with Maven, if module A relies on Module B, updating B locally can be easily done by using mvn install to deploy B into the local repository. This allows A to access the updated B without having to download it from the remote repository, makin ...

Exploring the compatibility of Husky with Typicode using Yarn

Currently, I have implemented the use of husky to configure git hooks for prettier. However, I am facing a persistent issue whenever I attempt to commit or push: > husky - Can't find npm in PATH. Skipping precommit script in package.json My curre ...

Is there a way to implement personalized error management in TypeScript with Express?

For a while now, I have been using JavaScript to create my APIs but recently made the switch to TypeScript. However, I keep encountering errors along the way. One particular error handler I have set up is for when a route cannot be found, as shown below: i ...

ParcelJS takes a unique approach by not bundling imported JavaScript libraries

My NodeJS app, which is a Cloudflare Worker, seems to be having trouble with bundling the 'ping-monitor' dependency. In my main typescript file (index.ts), I import the handler module and the first line reads: const Monitor = import('ping-m ...

Warning in Next.js: Each element in a list requires a distinct "key" property

Currently, I am in the process of building an e-commerce platform using Nextjs. My current focus is on enhancing the functionality of the myCart page, which serves as a dashboard for displaying the list of items that have been ordered. Below is the code s ...

What steps can be taken to turn off the ETag feature in npm's express during configuration?

I am a beginner in using nodejs and npm. I have been given the task of disabling Etag generation in the configuration level of npm express. The answer I found is to use app.set('etag', false); // turn off but I am looking for similar solutions on ...

Challenges arise when trying to display real-time Firebase data in a tabular format

I established a Firebase RealTime database with the following Values: Table: tutorial-vue-eb404 Root: other children year, author, publisher, title Using npm, I initialized my project The configuration was set up by creating firebase.js import Firebase ...

What is the location where static images or pictures are stored for the React Native application?

Are static images/pictures saved locally on the React Native App? Do the images get stored on the client-side (mobile app) or are they rendered from a server? ...

The Angular application encountered errors while trying to resolve main.ts, polyfile.test, and style.css

I encountered an issue while trying to run my Angular app in a Docker container. Here are the steps I followed: 1) Installed npm (v.3.5.2), node (v. 12.15.0), and angular CLI (v. 9.0.1) on my local machine 2) Created an Angular project locally using the ...

Monitor the HTTP response code in sails

I am working on logging every request that is being made to my sails application, however, I am facing an issue with logging the response associated with a request. To address this problem, I have created a custom middleware in the config/http.js file : ...

When uploading files, a NodeJS application behind an Apache2 reverse proxy may encounter the error message "413 Request Entity Too Large."

I am currently working on a node.js application that allows users to upload large files. Everything runs smoothly when the application is accessed on port 8080 or 3000. However, when trying to access it on port 80 behind apache2 with mod_proxy set up as ...

Node.js method convention - invoking self-defined functions

Consider a scenario where a Node module contains two functions, func1() and func2(). It is necessary for func1 to make a call to func2 during its execution. In order to test func2 independently, I have included both func1 and func2 in the exports by setti ...

Deploying the in-house API to operate on a publicly accessible domain

After completing tutorials on e-commerce MERN Stack by Lama Dev, I am ready to deploy my website. While I have successfully deployed the client side on Hostinger hosting using my domain, I am facing difficulties with the API which only works locally. I am ...

The react-native-video-controls package was used in React Native. When the onBack event was triggered, it successfully navigated back to the initial screen. However, upon returning

https://i.stack.imgur.com/GsS3d.png https://i.stack.imgur.com/HYBOU.png Attached are screenshots showing the issue I am experiencing with my video player. When I click the back button, the screen does not return to its initial state and the flatlist items ...