Skip to content

Upgrade to React Native version 0.71.7 as well as the latest versions… #1

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

Merged
merged 4 commits into from
Apr 24, 2023
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
6 changes: 0 additions & 6 deletions GettingStarted/.buckconfig

This file was deleted.

66 changes: 0 additions & 66 deletions GettingStarted/.flowconfig

This file was deleted.

12 changes: 6 additions & 6 deletions GettingStarted/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ build/
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
Expand All @@ -61,3 +58,6 @@ buck-out/
# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
1 change: 0 additions & 1 deletion GettingStarted/.ruby-version

This file was deleted.

26 changes: 18 additions & 8 deletions GettingStarted/App.js → GettingStarted/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import React, {useState, useEffect} from 'react'
import type {Node} from 'react'
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/

import React, {useState, useEffect} from 'react';
import type {PropsWithChildren} from 'react';
import {
SafeAreaView,
ScrollView,
Expand All @@ -11,7 +18,8 @@ import {
View,
AppState,
Image,
} from 'react-native'
} from 'react-native';

import styles from './styles.js'
import * as PubNubKeys from './PubNubKeys.js'
import DeviceInfo from 'react-native-device-info'
Expand Down Expand Up @@ -43,8 +51,9 @@ const pubnub = new PubNub({
uuid: 'ChangeMe',
})

const App: () => Node = () => {
// Note: Application does not look different in dark mode
function App(): JSX.Element {

// Note: Application does not look different in dark mode
//const isDarkMode = useColorScheme() === 'dark'

// Application state is persisted through hooks
Expand Down Expand Up @@ -329,13 +338,14 @@ const App: () => Node = () => {
pubnub.publish({channel: groupChatChannel, message: input})
}


return (
<SafeAreaView style={styles.outerContainer}>
<KeyboardAvoidingView
style={styles.innerContainer}
behavior='height'
keyboardVerticalOffset={Platform.select({
ios: 78,
ios: 20,
android: 20,
})}
>
Expand Down Expand Up @@ -484,7 +494,7 @@ const App: () => Node = () => {
</View>
</KeyboardAvoidingView>
</SafeAreaView>
)
);
}

export default App
export default App;
4 changes: 2 additions & 2 deletions GettingStarted/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

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

gem 'cocoapods', '~> 1.11', '>= 1.11.2'
gem 'cocoapods', '>= 1.11.3'
1 change: 1 addition & 0 deletions GettingStarted/_node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
55 changes: 0 additions & 55 deletions GettingStarted/android/app/_BUCK

This file was deleted.

Loading