Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

React Native's New Architecture #3443

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

Draft
thehobbit85 wants to merge 2 commits into develop
base: develop
Choose a base branch
Loading
from eliran/NewArchitucture
Draft
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
4 changes: 4 additions & 0 deletions .flowconfig
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
.*/node_modules/react-native-keyboard-aware-scroll-view/.*
.*/node_modules/react-native-permissions/.*
.*/node_modules/react-native/.*
.*/node_modules/@react-native-community/datetimepicker/src/.*
.*/node_modules/@react-native-community/async-storage/jest/.*
.*/node_modules/react-native-fast-image/dist/index.cjs.js.flow
.*/node_modules/metro-react-native-babel-transformer/node_modules/hermes-parser/dist/.*
.*/node_modules/hermes-estree/dist/generated/HermesESTreeSelectorTypes.js.flow
.*/node_modules/babel-plugin-macros/node_modules/resolve/test/resolver/malformed_package_json/package.json
; We fork some components by platform
.*/*[.]android.js

Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['react-native-reanimated/plugin']
plugins: ['react-native-reanimated/plugin', '@babel/plugin-proposal-class-properties', 'babel-plugin-codegen']
}
4 changes: 4 additions & 0 deletions flow-typed/Ignored.js.flow
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

// This file provides definitions for libraries we've ignored using `.flowconfig`.

declare module '@react-native-community/datetimepicker' {
declare module.exports: any
}

declare module 'edge-plugin-bity' {
declare module.exports: any
}
Expand Down
12 changes: 11 additions & 1 deletion ios/Podfile
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Add the following line at the top of Podfile.
# Codegen produces files/classes that share names, and it will show the warning.
# deterministic_uuids option surpresses the warning.
install! 'cocoapods', :deterministic_uuids => false

source "https://cdn.cocoapods.org/"
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
Expand All @@ -8,11 +13,16 @@ platform :ios, '12.0'

target 'edge' do
config = use_native_modules!
# Use env variables to turn it on/off.
fabric_enabled = ENV['USE_FABRIC']

use_react_native!(
:app_path => "#{Dir.pwd}/..",
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => true
:hermes_enabled => true,
# Enable fabric.
:fabric_enabled => fabric_enabled
)

# Enables Flipper.
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /