Skip to content

Commit 1c4031c

Browse files
Merge pull request #1 from PubNubDevelopers/upgrade-react-native-0.71.7
Upgrade to React Native version 0.71.7 as well as the latest versions…
2 parents 65b3225 + f272a1e commit 1c4031c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+579
-8955
lines changed

GettingStarted/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.

GettingStarted/.flowconfig

Lines changed: 0 additions & 66 deletions
This file was deleted.

GettingStarted/.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,16 @@ build/
3030
local.properties
3131
*.iml
3232
*.hprof
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
3336

3437
# node.js
3538
#
3639
node_modules/
3740
npm-debug.log
3841
yarn-error.log
3942

40-
# BUCK
41-
buck-out/
42-
\.buckd/
43-
*.keystore
44-
!debug.keystore
45-
4643
# fastlane
4744
#
4845
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
@@ -61,3 +58,6 @@ buck-out/
6158
# Ruby / CocoaPods
6259
/ios/Pods/
6360
/vendor/bundle/
61+
62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*

GettingStarted/.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

GettingStarted/App.js renamed to GettingStarted/App.tsx

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
import React, {useState, useEffect} from 'react'
2-
import type {Node} from 'react'
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* @format
6+
*/
7+
8+
import React, {useState, useEffect} from 'react';
9+
import type {PropsWithChildren} from 'react';
310
import {
411
SafeAreaView,
512
ScrollView,
@@ -11,7 +18,8 @@ import {
1118
View,
1219
AppState,
1320
Image,
14-
} from 'react-native'
21+
} from 'react-native';
22+
1523
import styles from './styles.js'
1624
import * as PubNubKeys from './PubNubKeys.js'
1725
import DeviceInfo from 'react-native-device-info'
@@ -43,8 +51,9 @@ const pubnub = new PubNub({
4351
uuid: 'ChangeMe',
4452
})
4553

46-
const App: () => Node = () => {
47-
// Note: Application does not look different in dark mode
54+
function App(): JSX.Element {
55+
56+
// Note: Application does not look different in dark mode
4857
//const isDarkMode = useColorScheme() === 'dark'
4958

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

341+
332342
return (
333343
<SafeAreaView style={styles.outerContainer}>
334344
<KeyboardAvoidingView
335345
style={styles.innerContainer}
336346
behavior='height'
337347
keyboardVerticalOffset={Platform.select({
338-
ios: 78,
348+
ios: 20,
339349
android: 20,
340350
})}
341351
>
@@ -484,7 +494,7 @@ const App: () => Node = () => {
484494
</View>
485495
</KeyboardAvoidingView>
486496
</SafeAreaView>
487-
)
497+
);
488498
}
489499

490-
export default App
500+
export default App;

GettingStarted/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

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

6-
gem 'cocoapods', '~> 1.11', '>= 1.11.2'
6+
gem 'cocoapods', '>= 1.11.3'

GettingStarted/_node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

GettingStarted/android/app/_BUCK

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)