Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt for example app name #8

Merged
merged 1 commit into from
Feb 27, 2020
Merged

Conversation

brodybits
Copy link
Owner

@brodybits brodybits commented Feb 26, 2020

more consistent with create-react-native-module

  • npm test ok
  • Tested the example app generated with user input name on Android
  • Tested the example app with user input name on iOS
  • TODO: remove some inconsistent information from the output of create-react-native-module in the output below:

updated output:

ℹ react-native-module-init 0.2.2-dev
✔ What is the desired native module name? … awesomeTestModule
✔ Should it be a view? … no / yes
✔ What is the full module package name? … react-native-awesome-test-module
✔ Initial package version is 1.0.0 - continue? … yes
✔ What is the desired native object class name prefix (can be blank)? … super
✔ Native class name is SUPERAwesomeTestModule. Continue? … yes
✔ Which native platforms? › Android, iOS
✔ What is the desired Android package id? … com.demo
✔ What is the author name? … Christopher J. Brody
✔ What is the author email? … chris.brody+brodybits@gmail.com
✔ What license? … MIT
ℹ It is possible to generate an example test app,
ℹ with workarounds in metro.config.js for metro linking issues
ℹ Requirements: react-native-cli and Yarn; pod is needed for iOS
✔ Generate the example app (with workarounds in metro.config.js)? … yes
✔ Example app name? … demonstration
✔ What react-native version to use for the example app (should be at least react-native@0.60)? … react-native@latest
✔ Show the output of React Native CLI (recommended)? … no
ℹ checking that react-native CLI can show its version
✔ react-native CLI ok
ℹ checking that Yarn CLI can show its version
✔ Yarn CLI ok
ℹ generating the native library module as a package
CREATE new React Native module with the following options:

  root moduleName: react-native-awesome-test-module
  name: awesomeTestModule
  prefix: SUPER
  modulePrefix: react-native
  packageIdentifier: com.demo
  platforms: android,ios
  tvosEnabled: false
  githubAccount: github_account
  authorName: Christopher J. Brody
  authorEmail: chris.brody+brodybits@gmail.com
  license: MIT
  view: false
  useAppleNetworking: false

CREATE: Generating the React Native library module
✔ native library module generated ok
ℹ generating the example app
ℹ generating App.js in the example app
ℹ rewrite metro.config.js with workaround solutions
✔ example app generated ok
ℹ adding the native library module into the example app as a dependency link
✔ added the native library module into the example app as a dependency link - ok
ℹ checking that the pod tool can show its version
✔ pod tool ok
ℹ starting additional pod install in ios subdirectory of example app
Detected React Native module pod for react-native-awesome-test-module
Analyzing dependencies
Downloading dependencies
Installing react-native-awesome-test-module (1.0.0)
Generating Pods project
Integrating client project
Pod installation complete! There are 29 dependencies from the Podfile and 27 total pods installed.
✔ additional pod install ok
💡 check out the example app in react-native-awesome-test-module/demonstration
💡 recommended: run Metro Bundler in a new shell
ℹ (cd react-native-awesome-test-module/demonstration && yarn start)
💡 enter the following commands to run the example app:
ℹ cd react-native-awesome-test-module/demonstration
ℹ react-native run-android
ℹ react-native run-ios

@brodybits brodybits marked this pull request as ready for review February 27, 2020 01:09
@brodybits brodybits merged commit 94a5480 into master Feb 27, 2020
@brodybits brodybits deleted the prompt-for-example-app-name branch February 27, 2020 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant