Skip to content

Commit

Permalink
SECURITY: FIX Use https links over http
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-yadav committed Jun 18, 2023
1 parent cd2cb72 commit d6201d8
Show file tree
Hide file tree
Showing 43 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion docs/_getting-started-linux-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Follow the [installation instructions for your Linux distribution](https://nodej

<h3>Java Development Kit</h3>

React Native currently recommends version 11 of the Java SE Development Kit (JDK). You may encounter problems using higher JDK versions. You may download and install [OpenJDK](http://openjdk.java.net) from [AdoptOpenJDK](https://adoptopenjdk.net/) or your system packager.
React Native currently recommends version 11 of the Java SE Development Kit (JDK). You may encounter problems using higher JDK versions. You may download and install [OpenJDK](https://openjdk.java.net) from [AdoptOpenJDK](https://adoptopenjdk.net/) or your system packager.

<h3>Android development environment</h3>

Expand Down
4 changes: 2 additions & 2 deletions docs/_getting-started-macos-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ While you can use any editor of your choice to develop your app, you will need t

<h3>Node &amp; Watchman</h3>

We recommend installing Node and Watchman using [Homebrew](http://brew.sh/). Run the following commands in a Terminal after installing Homebrew:
We recommend installing Node and Watchman using [Homebrew](https://brew.sh/). Run the following commands in a Terminal after installing Homebrew:

```shell
brew install node
Expand All @@ -22,7 +22,7 @@ If you have already installed Node on your system, make sure it is Node 16 or ne

<h3>Java Development Kit</h3>

We recommend installing the OpenJDK distribution called Azul **Zulu** using [Homebrew](http://brew.sh/). Run the following commands in a Terminal after installing Homebrew:
We recommend installing the OpenJDK distribution called Azul **Zulu** using [Homebrew](https://brew.sh/). Run the following commands in a Terminal after installing Homebrew:

```shell
brew tap homebrew/cask-versions
Expand Down
4 changes: 2 additions & 2 deletions docs/_getting-started-macos-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ While you can use any editor of your choice to develop your app, you will need t

### Node & Watchman

We recommend installing Node and Watchman using [Homebrew](http://brew.sh/). Run the following commands in a Terminal after installing Homebrew:
We recommend installing Node and Watchman using [Homebrew](https://brew.sh/). Run the following commands in a Terminal after installing Homebrew:

```shell
brew install node
Expand Down Expand Up @@ -90,7 +90,7 @@ This is the **suggested approach** to decouple the build infrastructure from the
On top of this, it's possible to add any other environment variable and to source the `.xcode.env` file in your build script phases. If you need to run script that requires some specific environment, this is the **suggested approach**: it allows to decouple the build phases from a specific environment.

:::info
If you are already using [NVM](http://nvm.sh/) (a command which helps you install and switch between versions of Node.js) and [zsh](https://ohmyz.sh/), you might want to move the code that initialize NVM from your `~/.zshrc` into a `~/.zshenv` file to help Xcode find your Node executable:
If you are already using [NVM](https://nvm.sh/) (a command which helps you install and switch between versions of Node.js) and [zsh](https://ohmyz.sh/), you might want to move the code that initialize NVM from your `~/.zshrc` into a `~/.zshenv` file to help Xcode find your Node executable:

```zsh
export NVM_DIR="$HOME/.nvm"
Expand Down
4 changes: 2 additions & 2 deletions docs/_integration-with-existing-apps-objc.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Add `node_modules/` to your `.gitignore` file.

### 3. Install CocoaPods

[CocoaPods](http://cocoapods.org) is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.
[CocoaPods](https://cocoapods.org) is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.

We recommend installing CocoaPods using [Homebrew](http://brew.sh/).
We recommend installing CocoaPods using [Homebrew](https://brew.sh/).

```shell
brew install cocoapods
Expand Down
4 changes: 2 additions & 2 deletions docs/_integration-with-existing-apps-swift.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ Add `node_modules/` to your `.gitignore` file.

### 3. Install CocoaPods

[CocoaPods](http://cocoapods.org) is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.
[CocoaPods](https://cocoapods.org) is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.

We recommend installing CocoaPods using [Homebrew](http://brew.sh/).
We recommend installing CocoaPods using [Homebrew](https://brew.sh/).

```shell
$ brew install cocoapods
Expand Down
2 changes: 1 addition & 1 deletion docs/animated.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Config is an object that may have the following options.

Note that you can only define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one:

The friction/tension or bounciness/speed options match the spring model in [`Facebook Pop`](https://github.com/facebook/pop), [Rebound](https://github.com/facebookarchive/rebound), and [Origami](http://origami.design/).
The friction/tension or bounciness/speed options match the spring model in [`Facebook Pop`](https://github.com/facebook/pop), [Rebound](https://github.com/facebookarchive/rebound), and [Origami](https://origami.design/).

- `friction`: Controls "bounciness"/overshoot. Default 7.
- `tension`: Controls speed. Default 40.
Expand Down
2 changes: 1 addition & 1 deletion docs/asyncstorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: '🚧 AsyncStorage'

It is recommended that you use an abstraction on top of `AsyncStorage` instead of `AsyncStorage` directly for anything more than light usage since it operates globally.

On iOS, `AsyncStorage` is backed by native code that stores small values in a serialized dictionary and larger values in separate files. On Android, `AsyncStorage` will use either [RocksDB](http://rocksdb.org/) or SQLite based on what is available.
On iOS, `AsyncStorage` is backed by native code that stores small values in a serialized dictionary and larger values in separate files. On Android, `AsyncStorage` will use either [RocksDB](https://rocksdb.org/) or SQLite based on what is available.

The `AsyncStorage` JavaScript code is a facade that provides a clear JavaScript API, real `Error` objects, and non-multi functions. Each method in the API returns a `Promise` object.

Expand Down
12 changes: 6 additions & 6 deletions docs/communication-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class MainActivity extends ReactActivity {
protected Bundle getLaunchOptions() {
Bundle initialProperties = new Bundle();
ArrayList<String> imageList = new ArrayList<String>(Arrays.asList(
"http://foo.com/bar1.png",
"http://foo.com/bar2.png"
"https://dummyimage.com/600x400/ffffff/000000.png",
"https://dummyimage.com/600x400/000000/ffffff.png"
));
initialProperties.putStringArrayList("images", imageList);
return initialProperties;
Expand All @@ -54,7 +54,7 @@ class MainActivity : ReactActivity() {
override fun createReactActivityDelegate(): ReactActivityDelegate {
return object : ReactActivityDelegate(this, mainComponentName) {
override fun getLaunchOptions(): Bundle {
val imageList = arrayListOf("http://foo.com/bar1.png", "http://foo.com/bar2.png")
val imageList = arrayListOf("https://dummyimage.com/600x400/ffffff/000000.png", "https://dummyimage.com/600x400/000000/ffffff.png")
val initialProperties = Bundle().apply { putStringArrayList("images", imageList) }
return initialProperties
}
Expand Down Expand Up @@ -89,8 +89,8 @@ export default class ImageBrowserApp extends React.Component {
```java
Bundle updatedProps = mReactRootView.getAppProperties();
ArrayList<String> imageList = new ArrayList<String>(Arrays.asList(
"http://foo.com/bar3.png",
"http://foo.com/bar4.png"
"https://dummyimage.com/600x400/ff0000/000000.png",
"https://dummyimage.com/600x400/ffffff/ff0000.png"
));
updatedProps.putStringArrayList("images", imageList);

Expand All @@ -103,7 +103,7 @@ mReactRootView.setAppProperties(updatedProps);

```kotlin
var updatedProps: Bundle = reactRootView.getAppProperties()
var imageList = arrayListOf("http://foo.com/bar3.png", "http://foo.com/bar4.png")
var imageList = arrayListOf("https://dummyimage.com/600x400/ff0000/000000.png", "https://dummyimage.com/600x400/ffffff/ff0000.png")
```

</TabItem>
Expand Down
8 changes: 4 additions & 4 deletions docs/communication-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ In order to embed a React Native view in a native component, we use `RCTRootView
`RCTRootView` has an initializer that allows you to pass arbitrary properties down to the React Native app. The `initialProperties` parameter has to be an instance of `NSDictionary`. The dictionary is internally converted into a JSON object that the top-level JS component can reference.

```objectivec
NSArray *imageList = @[@"http://foo.com/bar1.png",
@"http://foo.com/bar2.png"];
NSArray *imageList = @[@"https://dummyimage.com/600x400/ffffff/000000.png",
@"https://dummyimage.com/600x400/000000/ffffff.png"];

NSDictionary *props = @{@"images" : imageList};

Expand All @@ -49,8 +49,8 @@ export default class ImageBrowserApp extends React.Component {
`RCTRootView` also provides a read-write property `appProperties`. After `appProperties` is set, the React Native app is re-rendered with new properties. The update is only performed when the new updated properties differ from the previous ones.

```objectivec
NSArray *imageList = @[@"http://foo.com/bar3.png",
@"http://foo.com/bar4.png"];
NSArray *imageList = @[@"https://dummyimage.com/600x400/ff0000/000000.png",
@"https://dummyimage.com/600x400/ffffff/ff0000.png"];

rootView.appProperties = @{@"images" : imageList};
```
Expand Down
4 changes: 2 additions & 2 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ On iOS devices, open the file [`RCTWebSocketExecutor.mm`](https://github.com/fac
</TabItem>
<TabItem value="android">

On Android 5.0+ devices connected via USB, you can use the [`adb` command line tool](http://developer.android.com/tools/help/adb.html) to set up port forwarding from the device to your computer:
On Android 5.0+ devices connected via USB, you can use the [`adb` command line tool](https://developer.android.com/tools/help/adb.html) to set up port forwarding from the device to your computer:

```sh
adb reverse tcp:8081 tcp:8081
Expand Down Expand Up @@ -124,7 +124,7 @@ You can use Safari to debug the iOS version of your app without having to enable
- Select your app's JSContext: `Develop → Simulator (or other device) → JSContext`
- Safari's Web Inspector should open which has a Console and a Debugger

While sourcemaps may not be enabled by default, you can follow [this guide](http://blog.nparashuram.com/2019/10/debugging-react-native-ios-apps-with.html) or [video](https://www.youtube.com/watch?v=GrGqIIz51k4) to enable them and set break points at the right places in the source code.
While sourcemaps may not be enabled by default, you can follow [this guide](https://blog.nparashuram.com/2019/10/debugging-react-native-ios-apps-with.html) or [video](https://www.youtube.com/watch?v=GrGqIIz51k4) to enable them and set break points at the right places in the source code.

However, every time the app is reloaded (using live reload, or by manually reloading), a new JSContext is created. Choosing "Automatically Show Web Inspectors for JSContexts" saves you from having to select the latest JSContext manually.

Expand Down
24 changes: 12 additions & 12 deletions docs/easing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con

The `Easing` module implements common easing functions. This module is used by [`Animated.timing()`](animated.md#timing) to convey physically believable motion in animations.

You can find a visualization of some common easing functions at http://easings.net/
You can find a visualization of some common easing functions at https://easings.net/

### Predefined animations

Expand Down Expand Up @@ -393,7 +393,7 @@ static linear(t: number);

A linear function, `f(t) = t`. Position correlates to elapsed time one to one.

http://cubic-bezier.com/#0,0,1,1
https://cubic-bezier.com/#0,0,1,1

---

Expand All @@ -405,7 +405,7 @@ static ease(t: number);

A basic inertial interaction, similar to an object slowly accelerating to speed.

http://cubic-bezier.com/#.42,0,1,1
https://cubic-bezier.com/#.42,0,1,1

---

Expand All @@ -417,7 +417,7 @@ static quad(t: number);

A quadratic function, `f(t) = t * t`. Position equals the square of elapsed time.

http://easings.net/#easeInQuad
https://easings.net/#easeInQuad

---

Expand All @@ -429,7 +429,7 @@ static cubic(t: number);

A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed time.

http://easings.net/#easeInCubic
https://easings.net/#easeInCubic

---

Expand All @@ -441,7 +441,7 @@ static poly(n: number);

A power function. Position is equal to the Nth power of elapsed time.

n = 4: http://easings.net/#easeInQuart n = 5: http://easings.net/#easeInQuint
n = 4: https://easings.net/#easeInQuart n = 5: https://easings.net/#easeInQuint

---

Expand All @@ -453,7 +453,7 @@ static sin(t: number);

A sinusoidal function.

http://easings.net/#easeInSine
https://easings.net/#easeInSine

---

Expand All @@ -465,7 +465,7 @@ static circle(t: number);

A circular function.

http://easings.net/#easeInCirc
https://easings.net/#easeInCirc

---

Expand All @@ -477,7 +477,7 @@ static exp(t: number);

An exponential function.

http://easings.net/#easeInExpo
https://easings.net/#easeInExpo

---

Expand All @@ -491,7 +491,7 @@ A basic elastic interaction, similar to a spring oscillating back and forth.

Default bounciness is 1, which overshoots a little bit once. 0 bounciness doesn't overshoot at all, and bounciness of N > 1 will overshoot about N times.

http://easings.net/#easeInElastic
https://easings.net/#easeInElastic

---

Expand All @@ -513,7 +513,7 @@ static bounce(t: number);

Provides a basic bouncing effect.

http://easings.net/#easeInBounce
https://easings.net/#easeInBounce

---

Expand All @@ -525,7 +525,7 @@ static bezier(x1: number, y1: number, x2: number, y2: number);

Provides a cubic bezier curve, equivalent to CSS Transitions' `transition-timing-function`.

A useful tool to visualize cubic bezier curves can be found at http://cubic-bezier.com/
A useful tool to visualize cubic bezier curves can be found at https://cubic-bezier.com/

---

Expand Down
4 changes: 2 additions & 2 deletions docs/headless-js-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public class NetworkChangeReceiver extends BroadcastReceiver {
private boolean isAppOnForeground(Context context) {
/**
We need to check if app is in foreground otherwise the app will crash.
http://stackoverflow.com/questions/8489993/check-android-application-is-in-foreground-or-not
https://stackoverflow.com/questions/8489993/check-android-application-is-in-foreground-or-not
**/
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> appProcesses =
Expand Down Expand Up @@ -336,7 +336,7 @@ class NetworkChangeReceiver : BroadcastReceiver() {
private fun isAppOnForeground(context: Context): Boolean {
/**
* We need to check if app is in foreground otherwise the app will crash.
* http://stackoverflow.com/questions/8489993/check-android-application-is-in-foreground-or-not
* https://stackoverflow.com/questions/8489993/check-android-application-is-in-foreground-or-not
*/
val activityManager = context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
val appProcesses = activityManager.runningAppProcesses ?: return false
Expand Down
2 changes: 1 addition & 1 deletion docs/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ The mechanism that should be used to resize the image when the image's dimension

- `scale`: The image gets drawn downscaled or upscaled. Compared to `resize`, `scale` is faster (usually hardware accelerated) and produces higher quality images. This should be used if the image is smaller than the view. It should also be used if the image is slightly bigger than the view.

More details about `resize` and `scale` can be found at http://frescolib.org/docs/resizing.
More details about `resize` and `scale` can be found at https://frescolib.org/docs/resizing.

| Type | Default |
| ------------------------------------- | -------- |
Expand Down
Loading

0 comments on commit d6201d8

Please sign in to comment.