Skip to content
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

feat: support for new architecture #402

Merged
merged 2 commits into from
Feb 20, 2023
Merged

Conversation

bozaigao
Copy link

@bozaigao bozaigao commented Feb 19, 2023

support for new architecture
android: 修改 gradle.properties文件设置 newArchEnabled=true or newArchEnabled=false 切换新老架构
iOS: 进入iOS目录,执行RCT_NEW_ARCH_ENABLED=1 bundle exec pod install or RCT_NEW_ARCH_ENABLED=0 bundle exec pod install进行切换

lib/main.js Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
*/
'use strict';

import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件可以用ts来写吗?然后可以基于它直接导出d.ts吗

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改下吧

@sunnylqm sunnylqm merged commit 5587919 into reactnativecn:master Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants