Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(TVOS): rebuild TVOSExample app with RN 0.74.1 #2155

Merged
merged 18 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
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,
};
2 changes: 1 addition & 1 deletion TVOSExample/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
alduzy marked this conversation as resolved.
Show resolved Hide resolved
28 changes: 2 additions & 26 deletions TVOSExample/App.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
import React from 'react';
import 'react-native/tvos-types.d';
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';
import NativeStackExample from './src/NativeStackExample';
import App from '../Example/App.tsx';

const Stack = createNativeStackNavigator();

export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{title: '📺 React Native Screens'}}
/>
<Stack.Screen name="Bottom Tabs" component={BottomTabsExample} />
<Stack.Screen name="Modals" component={ModalsExample} />
<Stack.Screen name="Native Stack" component={NativeStackExample} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;
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
Loading