在弹出的CRNA新项目中安装MS AppCenter,以保留Expokit
我尝试遵循官方指南和一个全新的项目,以便对所有内容进行清理。
create-react-native-app delete
expo eject
ios和androidcd ios && pod install
cd ../android && ./gradlew installDevKernelDebug
yarn add appcenter appcenter-analytics appcenter-crashes --exact
react-native link
如您所见,NSURL * jsCodeLocation;的错误;总是出现。
Could not find line "NSURL *jsCodeLocation;" in file AppDelegate.m.
Update AppDelegate.m so that text is present, as we match on it and insert ' [AppCenterReactNative register]; // Initialize AppCenter ' after for AppCenter SDK integration.
Run Code Online (Sandbox Code Playgroud)
appdelegate react-native create-react-app expo visual-studio-app-center
我们正在使用 tsdx 构建共享代码项目,我们只有一个疑问,担心我们无法得到答案。如何导出使用 TSDX 发布的包的子文件夹。
让我们用我之前的例子来回答这个问题。在我们项目的入口点,我们将这两个组件导出到根目录中。
因此,当您想使用它们时,我们必须从库的根目录导入组件(使用示例):
import { Thing, SimpleStyledH1Application } from "tsdx-styled-components"
Run Code Online (Sandbox Code Playgroud)
我们想知道如何配置我们的入口点,以便我们可以从子文件夹中导入我们的组件,例如
import { Thing } from "tsdx-styled-components/things"
import { SimpleStyledH1Application } from "tsdx-styled-components/styled"
import { CoreComponent } from "tsdx-styled-components"
Run Code Online (Sandbox Code Playgroud)
关于如何将子文件夹添加到我们创建的库中的指南/注释,这样(不仅对我来说而且对使用 TSDX 的任何人来说)如何创建带有子文件夹的库都很容易。
示例项目:
https://github.com/robertovg/tsdx-styled-components/ https://github.com/robertovg/next-ts-styled-components-tsdx-host
这个问题最初作为tsdx上的问题发布,但几个月后没有答案,我想将其移至此处,看看是否有人解决了该问题。
appdelegate ×1
expo ×1
javascript ×1
module ×1
npm-publish ×1
react-native ×1
tsdx ×1
typescript ×1