File tree Expand file tree Collapse file tree 7 files changed +941
-16
lines changed
Expand file tree Collapse file tree 7 files changed +941
-16
lines changed Original file line number Diff line number Diff line change 1+ # Examples from <reactnavigation.org> converted to [ reason-react-navigation] ( https://reasonml-community.github.io/reason-react-native/ )
Original file line number Diff line number Diff line change 88 " reason-react" ,
99 " reason-react-native" ,
1010 " reason-react-navigation" ,
11- " reason-expo"
11+ " reason-expo"
1212 ],
1313 "sources" : [
1414 {
Original file line number Diff line number Diff line change 99 "watch" : " bsb -make-world -clean-world -w"
1010 },
1111 "dependencies" : {
12- "bs-platform" : " ^5.0.4" ,
12+ "bs-platform" : " 5.0.6" ,
13+ "bs-react-markdown" : " 0.0.9" ,
1314 "expo" : " ^34.0.3" ,
1415 "expo-linear-gradient" : " ^5.0.1" ,
1516 "gentype" : " 2.37.0" ,
17+ "node-libs-react-native" : " 1.0.3" ,
1618 "react" : " 16.8.3" ,
19+ "react-markdown" : " 4.1.0" ,
1720 "react-native" : " https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz" ,
1821 "react-native-gesture-handler" : " ~1.3.0" ,
22+ "react-native-markdown-renderer" : " 3.2.8" ,
1923 "react-native-paper" : " 2.16.0" ,
2024 "react-native-reanimated" : " ~1.1.0" ,
2125 "react-navigation" : " 3.12.0" ,
Original file line number Diff line number Diff line change 1- // let app = Demo.make;
2- // let app = SimpleStacks.make;
3- let app = HomeScreen.make;
1+ let app = HomeScreen . make;
Original file line number Diff line number Diff line change 1+ # ` NavigationEvent with focus ` Demo React Native Module
2+
3+ < https://reactnavigation.org/ >
4+
5+ Converted to reasonml from < https://reactnavigation.org/docs/en/with-navigation-focus.html#example >
6+
7+ ``` js
8+ import React from ' react' ;
9+ import { Text } from ' react-native' ;
10+ import { withNavigationFocus } from ' react-navigation' ;
11+
12+ class FocusStateLabel extends React .Component {
13+ render () {
14+ return < Text > {this .props .isFocused ? ' Focused' : ' Not focused' }< / Text > ;
15+ }
16+ }
17+ ```
18+
19+
Original file line number Diff line number Diff line change 1+ /**
2+ * `NavigationEvent with focus` Demo React Native Module
3+ * https://reactnavigation.org/
4+ *
5+ * Converted to reasonml from https://reactnavigation.org/docs/en/with-navigation-focus.html#example
6+ *
7+ */
18// see: https://reactnavigation.org/docs/en/with-navigation-focus.html#example
29// import React from 'react';
310// import { Text } from 'react-native';
You can’t perform that action at this time.
0 commit comments