tsrntemp 1.1.3 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsrntemp",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Clean and minimalist React Native template for a quick start with TypeScript.",
5
5
  "scripts": {
6
6
  "test": "exit 0"
@@ -1 +1 @@
1
- 16
1
+ 18
@@ -1,7 +1,15 @@
1
- module.exports = {
2
- arrowParens: 'avoid',
3
- bracketSameLine: true,
4
- bracketSpacing: false,
5
- singleQuote: true,
6
- trailingComma: 'all',
7
- };
1
+
2
+ module.exports = {
3
+ "tabWidth": 1, //一个tab代表几个空格数,默认为80
4
+ "useTabs": false, //是否使用tab进行缩进,默认为false,表示用空格进行缩减
5
+ "singleQuote": true, // //字符串是否使用单引号,默认为false,使用双引号
6
+ "printWidth": 120, // 换行字符串阈值
7
+ "semi": true, // 句末加分号,默认为true
8
+ "trailingComma": 'none', //是否使用尾逗号,有三个可选值"<none|es5|all>"
9
+ "bracketSpacing": true, //对象大括号直接是否有空格,默认为true,效果:{ foo: bar }
10
+ "jsxBracketSameLine": false, // jsx > 是否另起一行
11
+ "arrowParens": 'avoid', // (x) => {} 是否要有小括号
12
+ "requirePragma": false, // 是否要注释来决定是否格式化代码
13
+ "proseWrap": 'preserve', // 是否要换行
14
+ "parser": "babylon" //代码的解析引擎,默认为babylon,与babel相同。
15
+ }
package/template/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby File.read(File.join(__dir__, '.ruby-version')).strip
5
-
6
- gem 'cocoapods', '~> 1.11', '>= 1.11.3'
1
+ source 'https://rubygems.org'
2
+
3
+ # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
+ ruby '>= 2.6.10'
5
+
6
+ gem 'cocoapods', '>= 1.11.3'
@@ -0,0 +1,98 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ CFPropertyList (3.0.6)
5
+ rexml
6
+ activesupport (7.0.5)
7
+ concurrent-ruby (~> 1.0, >= 1.0.2)
8
+ i18n (>= 1.6, < 2)
9
+ minitest (>= 5.1)
10
+ tzinfo (~> 2.0)
11
+ addressable (2.8.4)
12
+ public_suffix (>= 2.0.2, < 6.0)
13
+ algoliasearch (1.27.5)
14
+ httpclient (~> 2.8, >= 2.8.3)
15
+ json (>= 1.5.1)
16
+ atomos (0.1.3)
17
+ claide (1.1.0)
18
+ cocoapods (1.12.1)
19
+ addressable (~> 2.8)
20
+ claide (>= 1.0.2, < 2.0)
21
+ cocoapods-core (= 1.12.1)
22
+ cocoapods-deintegrate (>= 1.0.3, < 2.0)
23
+ cocoapods-downloader (>= 1.6.0, < 2.0)
24
+ cocoapods-plugins (>= 1.0.0, < 2.0)
25
+ cocoapods-search (>= 1.0.0, < 2.0)
26
+ cocoapods-trunk (>= 1.6.0, < 2.0)
27
+ cocoapods-try (>= 1.1.0, < 2.0)
28
+ colored2 (~> 3.1)
29
+ escape (~> 0.0.4)
30
+ fourflusher (>= 2.3.0, < 3.0)
31
+ gh_inspector (~> 1.0)
32
+ molinillo (~> 0.8.0)
33
+ nap (~> 1.0)
34
+ ruby-macho (>= 2.3.0, < 3.0)
35
+ xcodeproj (>= 1.21.0, < 2.0)
36
+ cocoapods-core (1.12.1)
37
+ activesupport (>= 5.0, < 8)
38
+ addressable (~> 2.8)
39
+ algoliasearch (~> 1.0)
40
+ concurrent-ruby (~> 1.1)
41
+ fuzzy_match (~> 2.0.4)
42
+ nap (~> 1.0)
43
+ netrc (~> 0.11)
44
+ public_suffix (~> 4.0)
45
+ typhoeus (~> 1.0)
46
+ cocoapods-deintegrate (1.0.5)
47
+ cocoapods-downloader (1.6.3)
48
+ cocoapods-plugins (1.0.0)
49
+ nap
50
+ cocoapods-search (1.0.1)
51
+ cocoapods-trunk (1.6.0)
52
+ nap (>= 0.8, < 2.0)
53
+ netrc (~> 0.11)
54
+ cocoapods-try (1.2.0)
55
+ colored2 (3.1.2)
56
+ concurrent-ruby (1.2.2)
57
+ escape (0.0.4)
58
+ ethon (0.16.0)
59
+ ffi (>= 1.15.0)
60
+ ffi (1.15.5)
61
+ fourflusher (2.3.1)
62
+ fuzzy_match (2.0.4)
63
+ gh_inspector (1.1.3)
64
+ httpclient (2.8.3)
65
+ i18n (1.13.0)
66
+ concurrent-ruby (~> 1.0)
67
+ json (2.6.3)
68
+ minitest (5.18.0)
69
+ molinillo (0.8.0)
70
+ nanaimo (0.3.0)
71
+ nap (1.1.0)
72
+ netrc (0.11.0)
73
+ public_suffix (4.0.7)
74
+ rexml (3.2.5)
75
+ ruby-macho (2.5.1)
76
+ typhoeus (1.4.0)
77
+ ethon (>= 0.9.0)
78
+ tzinfo (2.0.6)
79
+ concurrent-ruby (~> 1.0)
80
+ xcodeproj (1.22.0)
81
+ CFPropertyList (>= 2.3.3, < 4.0)
82
+ atomos (~> 0.1.3)
83
+ claide (>= 1.0.2, < 2.0)
84
+ colored2 (~> 3.1)
85
+ nanaimo (~> 0.3.0)
86
+ rexml (~> 3.2.4)
87
+
88
+ PLATFORMS
89
+ ruby
90
+
91
+ DEPENDENCIES
92
+ cocoapods (>= 1.11.3)
93
+
94
+ RUBY VERSION
95
+ ruby 3.1.2p20
96
+
97
+ BUNDLED WITH
98
+ 2.3.11
@@ -1,40 +1,35 @@
1
- package com.template;
2
-
3
- import com.facebook.react.ReactActivity;
4
- import com.facebook.react.ReactActivityDelegate;
5
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
6
- import com.facebook.react.defaults.DefaultReactActivityDelegate;
7
- import android.os.Bundle;
8
-
9
- public class MainActivity extends ReactActivity {
10
-
11
- /**
12
- * Returns the name of the main component registered from JavaScript. This is used to schedule
13
- * rendering of the component.
14
- */
15
- @Override
16
- protected String getMainComponentName() {
17
- return "template";
18
- }
19
-
20
- /**
21
- * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
22
- * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
23
- * (aka React 18) with two boolean flags.
24
- */
25
- @Override
26
- protected ReactActivityDelegate createReactActivityDelegate() {
27
- return new DefaultReactActivityDelegate(
28
- this,
29
- getMainComponentName(),
30
- // If you opted-in for the New Architecture, we enable the Fabric Renderer.
31
- DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
32
- // If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
33
- DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
34
- );
35
- }
36
- @Override
37
- protected void onCreate(Bundle savedInstanceState) {
38
- super.onCreate(null);
39
- }
40
- }
1
+ package com.template;
2
+
3
+ import com.facebook.react.ReactActivity;
4
+ import com.facebook.react.ReactActivityDelegate;
5
+ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
6
+ import com.facebook.react.defaults.DefaultReactActivityDelegate;
7
+
8
+ public class MainActivity extends ReactActivity {
9
+
10
+ /**
11
+ * Returns the name of the main component registered from JavaScript. This is used to schedule
12
+ * rendering of the component.
13
+ */
14
+ @Override
15
+ protected String getMainComponentName() {
16
+ return "template";
17
+ }
18
+
19
+ /**
20
+ * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
21
+ * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
22
+ * (aka React 18) with two boolean flags.
23
+ */
24
+ @Override
25
+ protected ReactActivityDelegate createReactActivityDelegate() {
26
+ return new DefaultReactActivityDelegate(
27
+ this,
28
+ getMainComponentName(),
29
+ // If you opted-in for the New Architecture, we enable the Fabric Renderer.
30
+ DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
31
+ // If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
32
+ DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
33
+ );
34
+ }
35
+ }