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

package.json + template.config.js + dependency on @react-native-community/cli #7

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@react-native-community/template",
"version": "0.75.0",
"description": "The template used by `npx @react-native-community/cli init` to bootstrap a React Native application.",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"files": [
"template/*"
],
"dependencies": {},
"devDependencies": {},
"homepage": "https://github.com/react-native-community/template/tree/main",
"repository": {
"type": "git",
"url": "https://github.com/react-native-community/template.git"
}
}
12 changes: 12 additions & 0 deletions template.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

module.exports = {
placeholderName: 'HelloWorld',
titlePlaceholder: 'Hello App Display Name',
templateDir: './template',
};
4 changes: 2 additions & 2 deletions template/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
"@react-native-community/cli-platform-ios/autolinking.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip

Expand All @@ -15,7 +15,7 @@ if linkage != nil
end

target 'HelloWorld' do
config = use_native_modules!
config = autolink_native_modules!

use_react_native!(
:path => config[:reactNativePath],
Expand Down
1 change: 1 addition & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@react-native/eslint-config": "0.74.0",
"@react-native/metro-config": "0.74.0",
"@react-native/typescript-config": "0.74.0",
"@react-native-community/cli": "latest",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
Expand Down