Skip to content

Commit bde0800

Browse files
committed
Add support for the new architecture (lugg#732)
1 parent 86c7cd1 commit bde0800

File tree

73 files changed

+10915
-84
lines changed

Some content is hidden

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

73 files changed

+10915
-84
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ node_modules
44
xcuserdata
55
xcshareddata
66
/.idea/
7+
8+
build

Example/0.68.5/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ PODS:
282282
- React-jsinspector (0.68.5)
283283
- React-logger (0.68.5):
284284
- glog
285-
- react-native-config (1.4.12):
286-
- react-native-config/App (= 1.4.12)
287-
- react-native-config/App (1.4.12):
285+
- react-native-config (1.5.0):
286+
- react-native-config/App (= 1.5.0)
287+
- react-native-config/App (1.5.0):
288288
- React-Core
289289
- React-perflogger (0.68.5)
290290
- React-RCTActionSheet (0.68.5):
@@ -530,7 +530,7 @@ SPEC CHECKSUMS:
530530
React-jsiexecutor: 45c0496ca8cef6b02d9fa0274c25cf458fe91a56
531531
React-jsinspector: eb202e43b3879aba9a14f3f65788aec85d4e1ea9
532532
React-logger: 98f663b292a60967ebbc6d803ae96c1381183b6d
533-
react-native-config: dccf4bfb928c4a3575eea6458af0a2f57692de88
533+
react-native-config: 5330c8258265c1e5fdb8c009d2cabd6badd96727
534534
React-perflogger: 0458a87ea9a7342079e7a31b0d32b3734fb8415f
535535
React-RCTActionSheet: 22538001ea2926dea001111dd2846c13a0730bc9
536536
React-RCTAnimation: 732ce66878d4aa151d56a0d142b1105aa12fd313

Example/0.68.5/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Example",
2+
"name": "Example68",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {

FabricExample/.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

FabricExample/.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native',
4+
};

FabricExample/.gitignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
**/.xcode.env.local
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
36+
37+
# node.js
38+
#
39+
node_modules/
40+
npm-debug.log
41+
yarn-error.log
42+
43+
# fastlane
44+
#
45+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46+
# screenshots whenever they are needed.
47+
# For more information about the recommended setup visit:
48+
# https://docs.fastlane.tools/best-practices/source-control/
49+
50+
**/fastlane/report.xml
51+
**/fastlane/Preview.html
52+
**/fastlane/screenshots
53+
**/fastlane/test_output
54+
55+
# Bundle artifact
56+
*.jsbundle
57+
58+
# Ruby / CocoaPods
59+
**/Pods/
60+
/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
67+
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions

FabricExample/.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
bracketSameLine: true,
4+
bracketSpacing: false,
5+
singleQuote: true,
6+
trailingComma: 'all',
7+
};

FabricExample/.watchmanconfig

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

FabricExample/App.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* Generated with the TypeScript template
6+
* https://github.com/react-native-community/react-native-template-typescript
7+
*
8+
* @format
9+
*/
10+
11+
import React from 'react';
12+
import {StyleSheet, Text, View} from 'react-native';
13+
import Config from 'react-native-config';
14+
15+
const App = () => {
16+
return (
17+
<View style={styles.container}>
18+
<Text style={styles.text}>ENV={Config.ENV}</Text>
19+
<Text style={styles.text}>API_URL={Config.API_URL}</Text>
20+
</View>
21+
);
22+
};
23+
24+
const styles = StyleSheet.create({
25+
container: {
26+
flex: 1,
27+
justifyContent: 'center',
28+
alignItems: 'center',
29+
backgroundColor: '#F5FCFF',
30+
},
31+
text: {
32+
fontSize: 20,
33+
textAlign: 'center',
34+
margin: 10,
35+
},
36+
});
37+
38+
export default App;

FabricExample/Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby ">= 2.6.10"
5+
6+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
7+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'

0 commit comments

Comments
 (0)