-
-
Notifications
You must be signed in to change notification settings - Fork 598
feat: Publish fabric and classic architecture release #1308
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
Changes from 94 commits
cec0c26
7640e12
139a35b
94331d0
91d72f1
e3a96c2
8c010f5
054ae53
93217e4
9a00c71
e7f91e4
f835211
69af2ba
75e42aa
59ab207
0aaba53
1fc6d23
6d12b61
9d505a9
8fb1188
84e027e
73c5abf
f2b353e
da1226c
d6c0b0e
77b12b3
d9bedb3
3fdd3cd
114303c
60fab66
5c0fefe
35b438b
811cb8f
27e6b64
8300aa7
b078768
27314c9
25c9504
f4a37fb
a88f709
8ff3184
b6eae2d
e3a47da
4157680
3ff4603
fdebee4
bff934b
50404fc
d746f90
36cc005
28d19c4
3ce017a
84cd443
30850d4
3236937
3060d55
5ec3e2e
d7bb845
74462ff
0cb0f5e
97a67c2
61c9eda
11b9e0a
09b6007
c9c572c
d1887fe
57e645b
8c8d6c6
b0defb1
0d83832
071bdb6
ca51fce
06ef57a
5c71ccc
fe3e241
4e650fb
344aa01
9e7d2b1
b3102f1
6a0f07d
c992af7
3eb5b7a
9654ac4
5e2da1f
e41fd1b
10f3bee
668a8a7
eca2524
d358096
ed412ef
c59ae3b
69e63ae
2ed283e
dbc1c5c
33dd3b7
0f545e2
b484d5f
24a4db6
53f9b78
b4cf6d9
4796975
36f47cc
5198eb7
48f688c
a72df9e
da0ba74
743fa87
641e5a5
65db4b1
d267301
b99af0d
17fe593
b15e62a
3a8396e
60632f7
eb3d555
e56f572
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| [android] | ||
| target = Google Inc.:Google APIs:23 | ||
|
|
||
| [maven_repositories] | ||
| central = https://repo1.maven.org/maven2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| module.exports = { | ||
| root: true, | ||
| extends: '@react-native-community', | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| [ignore] | ||
| ; We fork some components by platform | ||
| .*/*[.]android.js | ||
|
|
||
| ; Ignore "BUCK" generated dirs | ||
| <PROJECT_ROOT>/\.buckd/ | ||
|
|
||
| ; Ignore polyfills | ||
| node_modules/react-native/Libraries/polyfills/.* | ||
|
|
||
| ; Flow doesn't support platforms | ||
| .*/Libraries/Utilities/LoadingView.js | ||
|
|
||
| [untyped] | ||
| .*/node_modules/@react-native-community/cli/.*/.* | ||
|
|
||
| [include] | ||
|
|
||
| [libs] | ||
| node_modules/react-native/interface.js | ||
| node_modules/react-native/flow/ | ||
|
|
||
| [options] | ||
| emoji=true | ||
|
|
||
| exact_by_default=true | ||
|
|
||
| format.bracket_spacing=false | ||
|
|
||
| module.file_ext=.js | ||
| module.file_ext=.json | ||
| module.file_ext=.ios.js | ||
|
|
||
| munge_underscores=true | ||
|
|
||
| module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1' | ||
| module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub' | ||
|
|
||
| suppress_type=$FlowIssue | ||
| suppress_type=$FlowFixMe | ||
| suppress_type=$FlowFixMeProps | ||
| suppress_type=$FlowFixMeState | ||
|
|
||
| [lints] | ||
| sketchy-null-number=warn | ||
| sketchy-null-mixed=warn | ||
| sketchy-number=warn | ||
| untyped-type-import=warn | ||
| nonstrict-import=warn | ||
| deprecated-type=warn | ||
| unsafe-getters-setters=warn | ||
| unnecessary-invariant=warn | ||
| signature-verification-failure=warn | ||
|
|
||
| [strict] | ||
| deprecated-type | ||
| nonstrict-import | ||
| sketchy-null | ||
| unclear-type | ||
| unsafe-getters-setters | ||
| untyped-import | ||
| untyped-type-import | ||
|
|
||
| [version] | ||
| ^0.168.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # OSX | ||
| # | ||
| .DS_Store | ||
|
|
||
| # Xcode | ||
| # | ||
| build/ | ||
| *.pbxuser | ||
| !default.pbxuser | ||
| *.mode1v3 | ||
| !default.mode1v3 | ||
| *.mode2v3 | ||
| !default.mode2v3 | ||
| *.perspectivev3 | ||
| !default.perspectivev3 | ||
| xcuserdata | ||
| *.xccheckout | ||
| *.moved-aside | ||
| DerivedData | ||
| *.hmap | ||
| *.ipa | ||
| *.xcuserstate | ||
|
|
||
| # Android/IntelliJ | ||
| # | ||
| build/ | ||
| .idea | ||
| .gradle | ||
| local.properties | ||
| *.iml | ||
| *.hprof | ||
|
|
||
| # 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 | ||
|
|
||
| # Bundle artifact | ||
| *.jsbundle | ||
|
|
||
| # CocoaPods | ||
| /ios/Pods/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| module.exports = { | ||
| arrowParens: 'avoid', | ||
| bracketSameLine: true, | ||
| bracketSpacing: false, | ||
| singleQuote: true, | ||
| trailingComma: 'all', | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| import React from 'react'; | ||
| import {createNativeStackNavigator} from '@react-navigation/native-stack'; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be better to use v5 version of |
||
| import {NavigationContainer} from '@react-navigation/native'; | ||
| import {I18nManager} from 'react-native'; | ||
| import Chapter from './src/Chapter'; | ||
| import chapters from './src/chapters'; | ||
| import HeaderDemo from './src/HeaderDemo'; | ||
| import {WHITE} from './src/colors'; | ||
| import {enableFabric} from 'react-native-screens'; | ||
|
|
||
| const Stack = createNativeStackNavigator(); | ||
|
|
||
| enableFabric(); | ||
|
|
||
| const App = () => ( | ||
| <NavigationContainer> | ||
| <Stack.Navigator | ||
| screenOptions={{ | ||
| headerHideBackButton: true, | ||
| direction: I18nManager.isRTL ? 'rtl' : 'ltr', | ||
| }}> | ||
| <Stack.Screen | ||
| name="Chapter" | ||
| options={{ | ||
| title: 'Fabric Example', | ||
| headerShown: false, | ||
| }} | ||
| initialParams={{ | ||
| index: 0, | ||
| chapters: chapters, | ||
| chapterRoute: 'Chapter', | ||
| afterChapterRoute: 'HeaderDemo', | ||
| }} | ||
| component={Chapter} | ||
| /> | ||
| <Stack.Screen | ||
| name="HeaderDemo" | ||
| component={HeaderDemo} | ||
| options={{title: 'Header Demo', headerTintColor: WHITE}} | ||
| /> | ||
| </Stack.Navigator> | ||
| </NavigationContainer> | ||
| ); | ||
|
|
||
| export default App; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +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.0' | ||
|
|
||
| gem 'cocoapods', '~> 1.11', '>= 1.11.2' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| GEM | ||
| remote: https://rubygems.org/ | ||
| specs: | ||
| CFPropertyList (3.0.5) | ||
| rexml | ||
| activesupport (6.1.4.4) | ||
| concurrent-ruby (~> 1.0, >= 1.0.2) | ||
| i18n (>= 1.6, < 2) | ||
| minitest (>= 5.1) | ||
| tzinfo (~> 2.0) | ||
| zeitwerk (~> 2.3) | ||
| addressable (2.8.0) | ||
| public_suffix (>= 2.0.2, < 5.0) | ||
| algoliasearch (1.27.5) | ||
| httpclient (~> 2.8, >= 2.8.3) | ||
| json (>= 1.5.1) | ||
| atomos (0.1.3) | ||
| claide (1.0.3) | ||
| cocoapods (1.11.2) | ||
| addressable (~> 2.8) | ||
| claide (>= 1.0.2, < 2.0) | ||
| cocoapods-core (= 1.11.2) | ||
| cocoapods-deintegrate (>= 1.0.3, < 2.0) | ||
| cocoapods-downloader (>= 1.4.0, < 2.0) | ||
| cocoapods-plugins (>= 1.0.0, < 2.0) | ||
| cocoapods-search (>= 1.0.0, < 2.0) | ||
| cocoapods-trunk (>= 1.4.0, < 2.0) | ||
| cocoapods-try (>= 1.1.0, < 2.0) | ||
| colored2 (~> 3.1) | ||
| escape (~> 0.0.4) | ||
| fourflusher (>= 2.3.0, < 3.0) | ||
| gh_inspector (~> 1.0) | ||
| molinillo (~> 0.8.0) | ||
| nap (~> 1.0) | ||
| ruby-macho (>= 1.0, < 3.0) | ||
| xcodeproj (>= 1.21.0, < 2.0) | ||
| cocoapods-core (1.11.2) | ||
| activesupport (>= 5.0, < 7) | ||
| addressable (~> 2.8) | ||
| algoliasearch (~> 1.0) | ||
| concurrent-ruby (~> 1.1) | ||
| fuzzy_match (~> 2.0.4) | ||
| nap (~> 1.0) | ||
| netrc (~> 0.11) | ||
| public_suffix (~> 4.0) | ||
| typhoeus (~> 1.0) | ||
| cocoapods-deintegrate (1.0.5) | ||
| cocoapods-downloader (1.5.1) | ||
| cocoapods-plugins (1.0.0) | ||
| nap | ||
| cocoapods-search (1.0.1) | ||
| cocoapods-trunk (1.6.0) | ||
| nap (>= 0.8, < 2.0) | ||
| netrc (~> 0.11) | ||
| cocoapods-try (1.2.0) | ||
| colored2 (3.1.2) | ||
| concurrent-ruby (1.1.9) | ||
| escape (0.0.4) | ||
| ethon (0.15.0) | ||
| ffi (>= 1.15.0) | ||
| ffi (1.15.4) | ||
| fourflusher (2.3.1) | ||
| fuzzy_match (2.0.4) | ||
| gh_inspector (1.1.3) | ||
| httpclient (2.8.3) | ||
| i18n (1.8.11) | ||
| concurrent-ruby (~> 1.0) | ||
| json (2.6.1) | ||
| minitest (5.15.0) | ||
| molinillo (0.8.0) | ||
| nanaimo (0.3.0) | ||
| nap (1.1.0) | ||
| netrc (0.11.0) | ||
| public_suffix (4.0.6) | ||
| rexml (3.2.5) | ||
| ruby-macho (2.5.1) | ||
| typhoeus (1.4.0) | ||
| ethon (>= 0.9.0) | ||
| tzinfo (2.0.4) | ||
| concurrent-ruby (~> 1.0) | ||
| xcodeproj (1.21.0) | ||
| CFPropertyList (>= 2.3.3, < 4.0) | ||
| atomos (~> 0.1.3) | ||
| claide (>= 1.0.2, < 2.0) | ||
| colored2 (~> 3.1) | ||
| nanaimo (~> 0.3.0) | ||
| rexml (~> 3.2.4) | ||
| zeitwerk (2.5.3) | ||
|
|
||
| PLATFORMS | ||
| ruby | ||
|
|
||
| DEPENDENCIES | ||
| cocoapods (~> 1.11, >= 1.11.2) | ||
|
|
||
| RUBY VERSION | ||
| ruby 2.7.0p0 | ||
|
|
||
| BUNDLED WITH | ||
| 2.2.31 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # React Native Screens example app that uses fabric architecture | ||
|
|
||
| ## Installing & running application | ||
|
|
||
| Before running application you need to install all dependencies. To do that: | ||
| - In `project root` run `yarn install` | ||
Ubax marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - In `FabricExample` run `yarn install` | ||
|
|
||
| ### Android | ||
|
|
||
| To run this application on android you need to have Java 11 active on your computer. You can check what version you are using by running `javac --version`. You can change it by changing `JAVA_HOME` environment variable or in Android Studio settings. | ||
Ubax marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Then you can run this application by `yarn android` or from Android Studio. | ||
|
|
||
| ### iOS | ||
|
|
||
| To run on iOS first go to `FabricExample/ios` and run `USE_FABRIC=1 USE_CODEGEN_DISCOVERY=1 RCT_NEW_ARCH_ENABLED=1 pod install`. This will install pods for the fabric architecture. | ||
|
|
||
| Then in `FabricExample` run `yarn ios` or run application from xCode. | ||
Ubax marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /** | ||
| * @format | ||
| */ | ||
|
|
||
| import 'react-native'; | ||
| import React from 'react'; | ||
| import App from '../App'; | ||
|
|
||
| // Note: test renderer must be required after react-native. | ||
| import renderer from 'react-test-renderer'; | ||
|
|
||
| it('renders correctly', () => { | ||
| renderer.create(<App />); | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| BUNDLE_PATH: "vendor/bundle" | ||
| BUNDLE_FORCE_RUBY_PLATFORM: 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 2.7.0 |
Uh oh!
There was an error while loading. Please reload this page.