Skip to content

Commit 66fb882

Browse files
committed
readme
1 parent f8c9829 commit 66fb882

File tree

7 files changed

+941
-16
lines changed

7 files changed

+941
-16
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Examples from <reactnavigation.org> converted to [reason-react-navigation](https://reasonml-community.github.io/reason-react-native/)

bsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"reason-react",
99
"reason-react-native",
1010
"reason-react-navigation",
11-
"reason-expo"
11+
"reason-expo"
1212
],
1313
"sources": [
1414
{

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
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",

src/App.re

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
// let app = Demo.make;
2-
// let app = SimpleStacks.make;
3-
let app = HomeScreen.make;
1+
let app = HomeScreen.make;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+

src/bindings/WithNavigationFocusScreen.re

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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';

0 commit comments

Comments
 (0)