Skip to content

Commit

Permalink
chore(TVOS): rebuild TVOSExample app with RN 0.74.1 (#2155)
Browse files Browse the repository at this point in the history
## Description

PR rebuilding TVOSExample from scratch with RN 0.74.1.

## Changes

- rebuild TVOSExample app with latest RN version

<!--

## Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

### Before

### After

-->

## Test code and steps to reproduce

<!--
Please include code that can be used to test this change and short
description how this example should work.
This snippet should be as minimal as possible and ready to be pasted
into editor (don't exclude exports or remove "not important" parts of
reproduction example)
-->

## Checklist

- [ ] Included code example that can be used to test this change
- [ ] Updated TS types
- [ ] Updated documentation: <!-- For adding new props to native-stack
-->
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/guides/GUIDE_FOR_LIBRARY_AUTHORS.md
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/native-stack/README.md
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/src/types.tsx
- [ ]
https://github.com/software-mansion/react-native-screens/blob/main/src/native-stack/types.tsx
- [ ] Ensured that CI passes

---------

Co-authored-by: Tymoteusz Boba <Tymoteusz.Boba@gmail.com>
  • Loading branch information
alduzy and tboba committed Jun 10, 2024
1 parent 5cfafbb commit e35da5a
Show file tree
Hide file tree
Showing 59 changed files with 8,397 additions and 5,796 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tv-os-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
workflow_dispatch:
jobs:
build:
runs-on: macos-12
runs-on: macos-14
timeout-minutes: 60
env:
WORKING_DIRECTORY: TVOSExample
Expand All @@ -40,4 +40,4 @@ jobs:
run: pod install
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}
run: yarn tv-os
run: npx react-native run-ios --scheme="TVOSExample-tvOS" --simulator="Apple TV"
6 changes: 0 additions & 6 deletions TVOSExample/.buckconfig

This file was deleted.

2 changes: 2 additions & 0 deletions TVOSExample/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
3 changes: 0 additions & 3 deletions TVOSExample/.editorconfig

This file was deleted.

2 changes: 1 addition & 1 deletion TVOSExample/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
extends: '@react-native',
};
66 changes: 0 additions & 66 deletions TVOSExample/.flowconfig

This file was deleted.

3 changes: 0 additions & 3 deletions TVOSExample/.gitattributes

This file was deleted.

40 changes: 29 additions & 11 deletions TVOSExample/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
**/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -28,32 +29,49 @@ build/
.gradle
local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/
# Ruby / CocoaPods
**/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# Expo
.expo

# testing
/coverage

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
7 changes: 3 additions & 4 deletions TVOSExample/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
bracketSameLine: true,
singleQuote: true,
jsxBracketSameLine: true,
};
3 changes: 2 additions & 1 deletion TVOSExample/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{}
{}

7 changes: 3 additions & 4 deletions TVOSExample/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import 'react-native/tvos-types.d';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from './src/HomeScreen';
import BottomTabsExample from './src/BottomTabsExample';
import ModalsExample from './src/ModalsExample';
Expand All @@ -16,7 +15,7 @@ export default function App() {
<Stack.Screen
name="Home"
component={HomeScreen}
options={{title: '📺 React Native Screens'}}
options={{ title: '📺 React Native Screens' }}
/>
<Stack.Screen name="Bottom Tabs" component={BottomTabsExample} />
<Stack.Screen name="Modals" component={ModalsExample} />
Expand Down
9 changes: 9 additions & 0 deletions TVOSExample/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import 'react-native';
import React from 'react';
import App from '../App';

// Note: import explicitly to use the types shipped with jest.
import {it} from '@jest/globals';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

Expand Down
55 changes: 0 additions & 55 deletions TVOSExample/android/app/BUCK

This file was deleted.

Loading

0 comments on commit e35da5a

Please sign in to comment.