Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native set src absolute path

// Create a package.json inside the src folder
// with the following content

{
    "name": "src"
}

//Then you can reference other files as such
import hello from 'src/foo/hello'

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #set #src #absolute #path
ADD COMMENT
Topic
Name
4+1 =