Skip to content

Latest commit

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

react-native-init-func

licensenpm

programmatic React Native initialization function from the CLI

exports the flexible init command function from @react-native-community/cli

usage

sample usage:

constinit=require('react-native-init-func');(async()=>{awaitinit(['demo'],{template: 'react-native-tvos@latest'})console.log('demo is now ready')})()

or with a custom relative directory option:

constinit=require('react-native-init-func');(async()=>{awaitinit(['demo'],{directory: 'react-native-awesome-module/demo',template: 'react-native-tvos@latest'})console.log('react-native-awesome-module/demo is now ready')})()

major quirk

This function seems to change the process cwd. It is recommended to resolve any relative paths needed before calling this function.

License

MIT LICENSE

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages