Skip to content

Conversation

@bozaigao
Copy link
Contributor

@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进行切换

*/
'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
Contributor 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