create-expo-stack 2.6.1 → 2.6.2-next.71ce545
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/templates/base/components/Container.tsx.ejs +1 -1
- package/build/templates/base/components/HeaderButton.tsx.ejs +3 -2
- package/build/templates/packages/nativewind/components/Button.tsx.ejs +3 -2
- package/build/templates/packages/restyle/components/Button.tsx.ejs +3 -2
- package/build/templates/packages/tamagui/components/Button.tsx.ejs +3 -2
- package/build/templates/packages/unistyles/components/Button.tsx.ejs +3 -2
- package/package.json +67 -67
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StyleSheet, SafeAreaView } from 'react-native';
|
|
2
2
|
|
|
3
3
|
export const Container = ({ children }: { children: React.ReactNode }) => {
|
|
4
|
-
return <SafeAreaView style={styles.container}>{children}</
|
|
4
|
+
return <SafeAreaView style={styles.container}>{children}</SafeAreaView>;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
const styles = StyleSheet.create({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import FontAwesome from '@expo/vector-icons/FontAwesome';
|
|
2
3
|
import { Pressable, StyleSheet } from 'react-native';
|
|
3
4
|
|
|
4
|
-
export const HeaderButton =
|
|
5
|
+
export const HeaderButton = React.forwardRef<typeof Pressable, { onPress?: () => void; }>(({ onPress }, ref) => {
|
|
5
6
|
return (
|
|
6
7
|
<Pressable onPress={onPress}>
|
|
7
8
|
{({ pressed }) => (
|
|
@@ -19,7 +20,7 @@ export const HeaderButton = ({ onPress }: { onPress?: () => void }) => {
|
|
|
19
20
|
)}
|
|
20
21
|
</Pressable>
|
|
21
22
|
);
|
|
22
|
-
};
|
|
23
|
+
});
|
|
23
24
|
|
|
24
25
|
export const styles = StyleSheet.create({
|
|
25
26
|
headerRight: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { Text, TouchableOpacity } from 'react-native';
|
|
2
3
|
|
|
3
|
-
export const Button = ({ onPress, title }
|
|
4
|
+
export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ onPress, title }, ref) => {
|
|
4
5
|
return (
|
|
5
6
|
<TouchableOpacity className={styles.button} onPress={onPress}>
|
|
6
7
|
<Text className={styles.buttonText}>{title}</Text>
|
|
7
8
|
</TouchableOpacity>
|
|
8
9
|
);
|
|
9
|
-
};
|
|
10
|
+
});
|
|
10
11
|
|
|
11
12
|
const styles = {
|
|
12
13
|
button: 'items-center bg-indigo-500 rounded-[28px] shadow-md p-4',
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { TouchableOpacity } from 'react-native';
|
|
2
3
|
import { Text, makeStyles } from 'theme';
|
|
3
4
|
|
|
4
|
-
export const Button = ({ onPress, title }
|
|
5
|
+
export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ onPress, title }, ref) => {
|
|
5
6
|
const styles = useStyles();
|
|
6
7
|
|
|
7
8
|
return (
|
|
@@ -11,7 +12,7 @@ export const Button = ({ onPress, title }: { onPress?: () => void; title: string
|
|
|
11
12
|
</Text>
|
|
12
13
|
</TouchableOpacity>
|
|
13
14
|
);
|
|
14
|
-
};
|
|
15
|
+
});
|
|
15
16
|
|
|
16
17
|
const useStyles = makeStyles((theme) => ({
|
|
17
18
|
button: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { Button as TButton, ButtonText } from '../tamagui.config';
|
|
2
3
|
|
|
3
|
-
export const Button = ({ onPress, title }
|
|
4
|
+
export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ onPress, title }, ref) => {
|
|
4
5
|
return (
|
|
5
6
|
<TButton onPress={onPress}>
|
|
6
7
|
<ButtonText>{title}</ButtonText>
|
|
7
8
|
</TButton>
|
|
8
9
|
);
|
|
9
|
-
};
|
|
10
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { Text, TouchableOpacity } from 'react-native';
|
|
2
3
|
import { useStyles } from 'react-native-unistyles';
|
|
3
4
|
|
|
4
|
-
export const Button = ({ onPress, title }
|
|
5
|
+
export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ onPress, title }, ref) => {
|
|
5
6
|
const { theme } = useStyles();
|
|
6
7
|
|
|
7
8
|
return (
|
|
@@ -9,4 +10,4 @@ export const Button = ({ onPress, title }: { onPress?: () => void; title: string
|
|
|
9
10
|
<Text style={theme.components.buttonText}>{title}</Text>
|
|
10
11
|
</TouchableOpacity>
|
|
11
12
|
);
|
|
12
|
-
};
|
|
13
|
+
});
|
package/package.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
2
|
+
"name": "create-expo-stack",
|
|
3
|
+
"version": "2.6.2-next.71ce545",
|
|
4
|
+
"description": "CLI tool to initialize a React Native application with Expo",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/danstepanov/create-expo-stack.git",
|
|
8
|
+
"directory": "cli"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://createexpostack.com",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"types": "build/types/types.d.ts",
|
|
13
|
+
"bin": {
|
|
14
|
+
"create-expo-stack": "bin/create-expo-stack.js"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"build",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"readme.md",
|
|
20
|
+
"docs",
|
|
21
|
+
"bin"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "bun run clean-build && bun run compile && bun run copy-templates && bun run lint-templates",
|
|
25
|
+
"bump": "bun run ./src/utilities/bumpVersion.ts",
|
|
26
|
+
"clean-build": "rm -rf ./build",
|
|
27
|
+
"compile": "tsc -p .",
|
|
28
|
+
"copy-templates": "bun run copyfiles -u 2 -a \"./src/templates/**/*\" ./build/templates",
|
|
29
|
+
"format": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --resolve-plugins-relative-to . && prettier \"**/*.{js,jsx,ts,tsx,json}\" --write",
|
|
30
|
+
"lint-templates": "bun run ejslint ./src/templates",
|
|
31
|
+
"prepublishOnly": "bun run build",
|
|
32
|
+
"publishPublic": "bun run build && npm publish --access public",
|
|
33
|
+
"snapupdate": "jest --updateSnapshot",
|
|
34
|
+
"test:watch": "bun test --watch",
|
|
35
|
+
"test": "bun test --timeout 30000"
|
|
36
|
+
},
|
|
37
|
+
"prettier": {
|
|
38
|
+
"arrowParens": "always",
|
|
39
|
+
"bracketSameLine": false,
|
|
40
|
+
"bracketSpacing": true,
|
|
41
|
+
"printWidth": 120,
|
|
42
|
+
"semi": true,
|
|
43
|
+
"singleQuote": true,
|
|
44
|
+
"tabWidth": 2,
|
|
45
|
+
"trailingComma": "none",
|
|
46
|
+
"useTabs": false
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@clack/prompts": "^0.7.0",
|
|
50
|
+
"ejs-lint": "^2.0.0",
|
|
51
|
+
"figlet": "^1.6.0",
|
|
52
|
+
"gluegun": "latest",
|
|
53
|
+
"gradient-string": "^2.0.2"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/gradient-string": "^1.1.2",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
58
|
+
"@typescript-eslint/parser": "^6.9.1",
|
|
59
|
+
"copyfiles": "^2.4.1",
|
|
60
|
+
"eslint": "^8.53.0",
|
|
61
|
+
"eslint-config-prettier": "^9.0.0",
|
|
62
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
63
|
+
"husky": "^5.1.3",
|
|
64
|
+
"prettier": "^3.1.0"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"provenance": false
|
|
68
|
+
}
|
|
69
69
|
}
|