File tree Expand file tree Collapse file tree 5 files changed +35
-9
lines changed
Expand file tree Collapse file tree 5 files changed +35
-9
lines changed Original file line number Diff line number Diff line change 11name : Release & Publish to NPM
22
3- on : workflow_dispatch
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ release-type :
7+ description : " Release type"
8+ required : true
9+ default : " preview"
10+ type : choice
11+ options :
12+ - patch
13+ - minor
14+ - major
15+ - preview
416
517permissions :
618 contents : write
3143
3244 - name : Run release
3345 run : |
34- yarn release --ci --preRelease=preview
46+ if [ "${{ inputs.release-type }}" = "preview" ]; then
47+ yarn release --ci --preRelease=preview
48+ else
49+ yarn release --ci --increment=${{ inputs.release-type }}
50+ fi
3551 env :
3652 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3753 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export default function App() {
117117 return (
118118 < MyView className = " container" >
119119 < MyView className = " box" / >
120- < / View >
120+ < / MyView >
121121 );
122122}
123123```
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-css" ,
3- "version" : " 3.0.1 " ,
3+ "version" : " 3.0.3 " ,
44 "description" : " A CSS polyfill for React Native" ,
55 "exports" : {
66 "." : {
4747 "types" : " ./dist/typescript/commonjs/src/components/index.d.ts"
4848 }
4949 },
50+ "./components/react-native-safe-area-context" : {
51+ "source" : " ./src/components/react-native-safe-area-context.native.tsx" ,
52+ "react-native" : " ./src/components/react-native-safe-area-context.native.tsx" ,
53+ "import" : {
54+ "types" : " ./dist/typescript/module/src/components/react-native-safe-area-context.d.ts" ,
55+ "default" : " ./dist/module/components/react-native-safe-area-context.js"
56+ },
57+ "require" : {
58+ "types" : " ./dist/typescript/commonjs/src/components/react-native-safe-area-context.d.ts" ,
59+ "default" : " ./dist/commonjs/components/react-native-safe-area-context.js"
60+ }
61+ },
5062 "./components/*" : {
5163 "source" : " ./src/components/*.tsx" ,
5264 "react-native" : " ./src/components/*.tsx" ,
Original file line number Diff line number Diff line change 1- // import { SafeAreaProvider } from "react-native-css/components/SafeAreaProvider";
21import { render , screen } from "@testing-library/react-native" ;
2+ import { SafeAreaProvider } from "react-native-css/components/SafeAreaProvider" ;
33import { View } from "react-native-css/components/View" ;
44import { registerCSS , testID } from "react-native-css/jest" ;
55
6- test . skip ( "safe-area-inset-*" , ( ) => {
6+ test ( "safe-area-inset-*" , ( ) => {
77 registerCSS ( `.my-class {
88 margin-top: env(safe-area-inset-top);
99 margin-bottom: env(safe-area-inset-bottom);
1010 margin-left: env(safe-area-inset-left);
1111 margin-right: env(safe-area-inset-right);
1212 }` ) ;
1313
14- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15- const SafeAreaProvider = View as any ;
16-
1714 render (
1815 < SafeAreaProvider
1916 initialMetrics = { {
Original file line number Diff line number Diff line change 1+ export { SafeAreaProvider } from "react-native-css/components/react-native-safe-area-context" ;
You can’t perform that action at this time.
0 commit comments