Skip to content

Commit e46e4e9

Browse files
authored
Update React Native version (#177)
Closes #173 We have some React Native and package dependency weirdness in the template app. In this PR, I created a new React Native app, then migrated the old template app's code to it. This is much easier than trying to navigate upgrading the React Native version. One big thing that didn't make the transition: icons. They were broken in the old app anyway. It's certainly possible to fix that, but in the interest of time, I wanted to get this updated app published. We can look at adding icons back in later.
1 parent d7ec004 commit e46e4e9

File tree

124 files changed

+5814
-12893
lines changed

Some content is hidden

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

124 files changed

+5814
-12893
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11

2-
.DS_Store
2+
.DS_Store
3+
node_modules

sync-todo/v2/client/react-native/.buckconfig

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: '@react-native-community',
3+
extends: '@react-native',
44
};

sync-todo/v2/client/react-native/.flowconfig

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

sync-todo/v2/client/react-native/.gitignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,15 @@ local.properties
3131
*.iml
3232
*.hprof
3333
.cxx/
34+
*.keystore
35+
!debug.keystore
3436

3537
# node.js
3638
#
3739
node_modules/
3840
npm-debug.log
3941
yarn-error.log
4042

41-
# BUCK
42-
buck-out/
43-
\.buckd/
44-
*.keystore
45-
!debug.keystore
46-
4743
# fastlane
4844
#
4945
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
@@ -62,3 +58,9 @@ buck-out/
6258
# Ruby / CocoaPods
6359
/ios/Pods/
6460
/vendor/bundle/
61+
62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*
64+
65+
# testing
66+
/coverage

sync-todo/v2/client/react-native/.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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.13'
7+
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'

sync-todo/v2/client/react-native/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A todo list application built with the [React Native SDK](https://www.mongodb.com/docs/realm/sdk/react-native/) and [Atlas Device Sync](https://www.mongodb.com/docs/atlas/app-services/sync/).
44

5-
You can follow along with the [React Native Tutorial](https://www.mongodb.com/docs/atlas/app-services/tutorial/react-native/) to see how to build, modify, and
5+
You can follow along with the [React Native Tutorial](https://www.mongodb.com/docs/atlas/app-services/tutorial/react-native/) to see how to build, modify, and
66
run this template app.
77

88
## Prerequisites
@@ -26,9 +26,9 @@ Ensure `atlasConfig.json` exists and contains the following properties:
2626
2727
### Using the Atlas App Services UI
2828
29-
The easiest way to use this template app is to log on to [Atlas App Services](https://realm.mongodb.com/) and click the **Create App From Template** button. Choose
30-
**Real Time Sync**, and then follow the prompts. While the backend app is being
31-
created, you can download this React Native template app pre-configured for your new
29+
The easiest way to use this template app is to log on to [Atlas App Services](https://realm.mongodb.com/) and click the **Create App From Template** button. Choose
30+
**Real Time Sync**, and then follow the prompts. While the backend app is being
31+
created, you can download this React Native template app pre-configured for your new
3232
app.
3333
3434
### Cloning from GitHub

sync-todo/v2/generated/react-native/__tests__/App-test.js renamed to sync-todo/v2/client/react-native/__tests__/App.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import 'react-native';
66
import React from 'react';
77
import App from '../App';
88

9+
// Note: import explicitly to use the types shiped with jest.
10+
import {it} from '@jest/globals';
11+
912
// Note: test renderer must be required after react-native.
1013
import renderer from 'react-test-renderer';
1114

sync-todo/v2/client/react-native/_node-version

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

sync-todo/v2/client/react-native/android/app/_BUCK

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

0 commit comments

Comments
 (0)