Skip to content
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
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Docs Typecheck

on:
push:
branches:
- feature-v1.0b_mono
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: Build Expo docs
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
run: npm i

- name: Typecheck docs
run: npm run typecheck -w docs
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.18.0
v22.20.0
30 changes: 30 additions & 0 deletions workspaces/docs/types/react-native-web.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import 'react-native';
import 'react-native/Libraries/Components/Pressable/Pressable';
import 'react-native/Libraries/StyleSheet/StyleSheetTypes';

declare module 'react-native/Libraries/Components/Pressable/Pressable' {
interface PressableStateCallbackType {
readonly hovered?: boolean;
readonly focused?: boolean;
}
}

declare module 'react-native/Libraries/StyleSheet/StyleSheetTypes' {
interface ViewStyle {
transitionDuration?: string | number;
transitionProperty?: string;
transitionTimingFunction?: string;
}

interface TextStyle {
transitionDuration?: string | number;
transitionProperty?: string;
transitionTimingFunction?: string;
}

interface ImageStyle {
transitionDuration?: string | number;
transitionProperty?: string;
transitionTimingFunction?: string;
}
}
Loading