title: There are build errors generating in my RNGestureHandler.h file under ExpoKit. Unknown type name 'RNGestureHandlerState'
body: <p>There are build errors generating in my RNGestureHandler.h file under ExpoKit. Unknown type name 'RNGestureHandlerState'. This issue occurred after I detached expo from the project.</p>
  <p>I tried fixes I saw such changing the #import &lt;XXX.h&gt; to import &quot;XXX.h&quot; but the errors still remain .</p>
  <p><a href="https://i.stack.imgur.com/Ou1La.png" rel="nofollow noreferrer">These are the error messages</a></p>
  <pre><code>#import &lt;RNGestureHandlerState.h&gt;
  #import &lt;RNGestureHandlerDirection.h&gt;
  #import &lt;RNGestureHandlerEvents.h&gt;
  
  #import &lt;Foundation/Foundation.h&gt;
  #import &lt;UIKit/UIKit.h&gt;
  #import &lt;React/RCTConvert.h&gt;
  
  #define VEC_LEN_SQ(pt) (pt.x * pt.x + pt.y * pt.y)
  #define TEST_MIN_IF_NOT_NAN(value, limit) \
  (!isnan(limit) &amp;&amp; ((limit &lt; 0 &amp;&amp; value &lt;= limit) || (limit &gt;= 0 &amp;&amp; value &gt;= limit)))
  
  #define TEST_MAX_IF_NOT_NAN(value, max) \
  (!isnan(max) &amp;&amp; ((max &lt; 0 &amp;&amp; value &lt; max) || (max &gt;= 0 &amp;&amp; value &gt; max)))
  
  #define APPLY_PROP(recognizer, config, type, prop, propName) do { \
  id value = config[propName]; \
  if (value != nil) recognizer.prop = [RCTConvert type:value]; \
  } while(0)
  
  #define APPLY_FLOAT_PROP(prop) do { APPLY_PROP(recognizer, config, CGFloat, prop, @#prop); } while(0)
  #define APPLY_INT_PROP(prop) do { APPLY_PROP(recognizer, config, NSInteger, prop, @#prop); } while(0)
  #define APPLY_NAMED_INT_PROP(prop, propName) do { APPLY_PROP(recognizer, config, NSInteger, prop, propName); } while(0)
  
  @protocol RNGestureHandlerEventEmitter
  
  - (void)sendTouchEvent:(nonnull RNGestureHandlerEvent *)event;
  
  - (void)sendStateChangeEvent:(nonnull RNGestureHandlerStateChange *)event;
  
  @end
  
  
  @protocol RNRootViewGestureRecognizerDelegate &lt;UIGestureRecognizerDelegate&gt;
  
  - (void)gestureRecognizer:(nullable UIGestureRecognizer *)gestureRecognizer
      didActivateInRootView:(nullable UIView *)rootView;
  
  @end
  
  
  @interface RNGestureHandler : NSObject &lt;UIGestureRecognizerDelegate&gt; {
  
  @protected UIGestureRecognizer *_recognizer;
  @protected RNGestureHandlerState _lastState;     //Error in this line: Unknown type name 'RNGestureHandlerState'
  
  
  
  }
  
  + (nullable RNGestureHandler *)findGestureHandlerByRecognizer:(nonnull UIGestureRecognizer *)recognizer;
  
  - (nonnull instancetype)initWithTag:(nonnull NSNumber *)tag;
  
  @property (nonatomic, readonly, nonnull) NSNumber *tag;
  @property (nonatomic, weak, nullable) id&lt;RNGestureHandlerEventEmitter&gt; emitter;
  @property (nonatomic, readonly, nullable) UIGestureRecognizer *recognizer;
  @property (nonatomic) BOOL enabled;
  @property(nonatomic) BOOL shouldCancelWhenOutside;
  
  - (void)bindToView:(nonnull UIView *)view;
  - (void)unbindFromView;
  - (void)configure:(nullable NSDictionary *)config NS_REQUIRES_SUPER;
  - (void)handleGesture:(nonnull id)recognizer;
  - (BOOL)containsPointInView;
  - (RNGestureHandlerState)state;                                           //Error in this line: Expected a type
  - (nullable RNGestureHandlerEventExtraData *)eventExtraData:(nonnull id)recognizer;
  
  - (void)reset;
  - (void)sendEventsInState:(RNGestureHandlerState)state                     //Error in this line: Expected a type
             forViewWithTag:(nonnull NSNumber *)reactTag
              withExtraData:(RNGestureHandlerEventExtraData *)extraData;
  
  @end
  
  
  
  
  
  
  
  </code></pre>