react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

New architecture doc turbo module example doesn't work

Open hamidhadi opened this issue 2 years ago • 0 comments

Description

I am trying to create a TurboModule based on the doc example but, I can't get the same result for CodeGen.

generated
└── build
    └── generated
        └── ios
            ├── FBReactNativeSpec
            │   ├── FBReactNativeSpec-generated.mm
            │   └── FBReactNativeSpec.h
            ├── RCTThirdPartyFabricComponentsProvider.h
            ├── RCTThirdPartyFabricComponentsProvider.mm
            ├── RTNCalculatorSpec  < *********** This Folder is Missing!
            │   ├── RTNCalculatorSpec-generated.mm
            │   └── RTNCalculatorSpec.h
            └── react
                └── renderer
                    └── components
                        └── rncore
                            ├── ComponentDescriptors.h
                            ├── EventEmitters.cpp
                            ├── EventEmitters.h
                            ├── Props.cpp
                            ├── Props.h
                            ├── RCTComponentViewHelpers.h
                            ├── ShadowNodes.cpp
                            └── ShadowNodes.h

Also, when I tried to add the example RN module to the app via yarn add ./RTNCalculator, I got this error:

[!] CocoaPods could not find compatible versions for pod "RCT-Folly":
  In snapshot (Podfile.lock):
    RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)

  In Podfile:
    RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)

    React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) was resolved to 0.69.4, which depends on
      RCT-Folly (= 2021.06.28.00-v2)

    rtn-calculator (from `../node_modules/rtn-calculator`) was resolved to 0.0.1, which depends on
      RCT-Folly (= 2021.07.22.00)

So I changed the folly_version in rtn-calculator.podspec to 2021.06.28.00-v2.

Documentation version

doc-version: Next
react-native: 0.69.4

hamidhadi avatar Aug 20 '22 14:08 hamidhadi