Skip to content

Commit 6a6691a

Browse files
committed
Add more resources to getting started section
1 parent 1521261 commit 6a6691a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

versioned_docs/version-5.x/configuring-links.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ const state = {
363363

364364
Note that in this case, any params in the URL are only passed to the `Profile` screen which matches the path pattern `users/:id`, and the `Feed` screen doesn't receive any params. If you want to have the same params in the `Feed` screen, you can specify a [custom `getStateFromPath` function](use-linking.md#getstatefrompath) and copy those params.
365365

366+
Similarly, if you want to access params of a parent screen from a child screen, you can use [React Context](https://reactjs.org/docs/context.html) to expose them.
367+
366368
## Matching exact paths
367369

368370
By default, paths defined for each screen are matched against the URL relative to their parent screen's path. Consider the following config:

versioned_docs/version-5.x/getting-started.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ title: Getting started
44
sidebar_label: Getting started
55
---
66

7-
If you're already familiar with React Native then you'll be able to get moving with React Navigation quickly! If not, you may want to read sections 1 to 4 (inclusive) of [React Native Express](http://reactnativeexpress.com/) first, then come back here when you're done.
8-
97
What follows within the _Fundamentals_ section of this documentation is a tour of the most important aspects of React Navigation. It should cover enough for you to know how to build your typical small mobile application, and give you the background that you need to dive deeper into the more advanced parts of React Navigation.
108

9+
## Pre-requisites
10+
11+
If you're already familiar with JavaScript, React and React Native, then you'll be able to get moving with React Navigation quickly! If not, we highly recommend you to gain some basic knowledge first, then come back here when you're done.
12+
13+
Here are some resources to help you out:
14+
15+
1. [React Native Express](http://reactnativeexpress.com/) (Sections 1 to 4)
16+
2. [Main Concepts of React](https://reactjs.org/docs/hello-world.html)
17+
3. [React Hooks](https://reactjs.org/docs/hooks-intro.html)
18+
4. [React Context](https://reactjs.org/docs/context.html) (Advanced)
19+
1120
## Installation
1221

1322
Install the required packages in your React Native project:
@@ -44,7 +53,7 @@ npm install react-native-reanimated react-native-gesture-handler react-native-sc
4453
4554
From React Native 0.60 and higher, [linking is automatic](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md). So you **don't need to run** `react-native link`.
4655

47-
If you're on a Mac and developing for iOS, you need to install the pods (via [Cocoapods](https://cocoapods.org/)) to complete the linking.
56+
If you're on a Mac and developing for iOS, you need to install the pods (via [Cocoapods](https://cocoapods.org/)) to complete the linking.
4857

4958
```sh
5059
npx pod-install ios

0 commit comments

Comments
 (0)