Closed
Description
Thank you for filing! Check list:
- Is it a bug? Usage questions should often be asked in the forum instead.
- Concise, focused, friendly issue title & description.
- A minimal, reproducible example.
- Ideally in OCaml syntax for now. To isolate the problem caused by either Reason or the New Syntax.
- OS and browser versions, if relevant.
- Is it already fixed in master?
How to reproduce?
Use this
class type virtual materialTopTabBarProps = {
as 'self;
constraint 'self = #materialTopTabBarOptions;
pub state: navigationState(M.params);
pub navigation: navigation;
pub descriptors: descriptors;
// SceneRendererProps from react-native-tab-view
pub layout: layout;
pub position: animatedNode;
pub jumpTo: string => unit;
};
Try using bsc -format
. The code just disappear. You can reproduce on the playground too (select .RE, paste the snippet, click on .RES, no more class).
This is a problem for rescript-react-navigation as we have a lot of class to bind.
Metadata
Metadata
Assignees
Labels
No labels