@@ -37,18 +37,48 @@ You can install another package, [`react-navigation-material-bottom-tabs`](https
3737``` js
3838import { createMaterialBottomTabNavigator } from ' react-navigation-material-bottom-tabs' ;
3939
40- export default createMaterialBottomTabNavigator ({
41- Album: { screen : Album },
42- Library: { screen : Library },
43- History : { screen : History },
44- Cart: { screen : Cart },
45- }, {
46- initialRouteName: ' Album' ,
47- activeTintColor: ' #F44336' ,
48- });
40+ export default createMaterialBottomTabNavigator (
41+ {
42+ Album: { screen : Album },
43+ Library: { screen : Library },
44+ History : { screen : History },
45+ Cart: { screen : Cart },
46+ },
47+ {
48+ initialRouteName: ' Album' ,
49+ activeTintColor: ' #F44336' ,
50+ },
51+ );
52+ ```
53+
54+ ## Development workflow
55+
56+ To setup the development environment, open a Terminal in the repo directory and run the following:
57+
58+ ``` sh
59+ yarn bootstrap
60+ ```
61+
62+ While developing, you can run the example app with [ Expo] ( https://expo.io/ ) to test your changes:
63+
64+ ``` sh
65+ yarn example start
66+ ```
67+
68+ Make sure your code passes TypeScript and ESLint. Run the following to verify:
69+
70+ ``` sh
71+ yarn typescript
72+ yarn lint
73+ ```
74+
75+ To fix formatting errors, run the following:
76+
77+ ``` sh
78+ yarn lint --fix
4979```
5080
51- ## Documentation
81+ ## Docs
5282
5383- [ ` createBottomTabNavigator ` ] ( https://reactnavigation.org/docs/en/bottom-tab-navigator.html )
5484- [ ` createMaterialTopTabNavigator ` ] ( https://reactnavigation.org/docs/en/material-top-tab-navigator.html )
0 commit comments