A framework for building native apps with React.
Branch: master
Clone or download
nhunzaker and facebook-github-bot Use existing character set in POST body when possible (#23603)
Summary:
This commit fixes a bug introduced in a previous attempt (#23580) to address an issue where okhttp appended `charset=utf-8` to the Content-Type header when otherwise not specified.

In that commit, I converted all characters to UTF-8, however it should instead use an existing encoding when possible.

Related issues:
#8237 (comment)

[Android][fixed] - Respect existing character set when specified in fetch() POST request
Pull Request resolved: #23603

Differential Revision: D14191750

Pulled By: hramos

fbshipit-source-id: 11c1bfd98ccd33cd8e54ea426285b7d2ce9c2d7c
Latest commit 0d5aebb Feb 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.appveyor fix windows build (#23082) Jan 21, 2019
.circleci Enable js e2e tests (#23571) Feb 21, 2019
.github Rename labels in stale.yml (#23319) Feb 6, 2019
ContainerShip migrate ci to official docker (#21477) Jan 24, 2019
IntegrationTests Update ws dependency (#23520) Feb 21, 2019
Libraries Revert of [D13948951]Apply the fix for CJK languages on single-line t… Feb 22, 2019
RNTester Toggle secureTextEntry cursor spacing (#23524) Feb 22, 2019
React Remove compiler warning (#23588) Feb 22, 2019
ReactAndroid Use existing character set in POST body when possible (#23603) Feb 23, 2019
ReactCommon fix rotation transforms Feb 22, 2019
bots Danger, be nice to PRs. (#23334) Feb 8, 2019
flow-typed/npm remove deprecated utilities Jan 15, 2019
flow Replace our local types by flow-typed (#20320) Dec 20, 2018
gradle/wrapper bump gradle to 5.0, android gradle plugin to 3.3.1 (#23324) Feb 20, 2019
jest fix: remove the unused packages and convert minimist to yargs (#23467) Feb 15, 2019
keystores Use fb_native_wrapper for all targets Oct 31, 2018
lib Update copyright headers to yearless format Sep 11, 2018
local-cli Update references to the CLI (#23052) Jan 21, 2019
packages enable symbolicate for sectioned sourcemaps (#23572) Feb 22, 2019
scripts Enable js e2e tests (#23571) Feb 21, 2019
template bump android gradle plugin to 3.3.1 (#23598) Feb 22, 2019
third-party-podspecs Split React.podspec into separate podspecs for each Xcode project (#2… Feb 22, 2019
tools/build_defs Fix Skylint warnings in rn_defs.bzl. Dec 19, 2018
.buckconfig Bump Android SDK to 28, Build Tools to 28.0.2, Gradle to 4.7, Gradle … Dec 5, 2018
.buckjavaargs limiting BUCK's memory for CI Feb 1, 2016
.clang-format Moving ObjC specific clang-format rules to the common config Feb 11, 2019
.editorconfig editorconfig: Set indent_size for BUCK files to 4 (#21554) Oct 9, 2018
.eslintignore Suggest running yarn lint --fix (#23413) Feb 13, 2019
.eslintrc Open Source symbolication code Feb 15, 2019
.flowconfig Add HMRLoadingView module for web target (#23389) Feb 21, 2019
.flowconfig.android Add HMRLoadingView module for web target (#23389) Feb 21, 2019
.gitattributes Added a .gitattributes file, ensuring that Bash script source files (… Oct 14, 2015
.gitignore Check Flow and run basic packager tests using open source RN config Aug 9, 2018
.nvmrc Add .nvmrc + fix node version for eslint 5 compat (#20109) Jul 31, 2018
CODE_OF_CONDUCT.md Update repo documentation to match other Facebook projects Sep 11, 2018
CONTRIBUTING.md Update repo documentation to match other Facebook projects Sep 11, 2018
DockerTests.md Update DockerTests.md (#23461) Feb 15, 2019
Jenkinsfile Container Testing Updates Apr 12, 2017
LICENSE Update copyright headers to yearless format Sep 11, 2018
LICENSE-docs More licenses Mar 25, 2015
README.md Update README.md (#20867) Dec 10, 2018
React.podspec Split React.podspec into separate podspecs for each Xcode project (#2… Feb 22, 2019
Releases.md Fix typo in Releases.md (#20487) Aug 1, 2018
build.gradle bump android gradle plugin to 3.3.1 (#23598) Feb 22, 2019
cli.js Update references to the CLI (#23052) Jan 21, 2019
gradlew fix gradle wrapper issue (#19976) Aug 8, 2018
gradlew.bat Use new JavaScriptCore from npm (#22231) Dec 27, 2018
jest-preset.js fix: use `require.resolve` in `jest-preset` (#22972) Jan 15, 2019
package.json Add deprecated-react-native-listview Feb 22, 2019
react.gradle Fix buildType issue introduced in rebase (#23444) Feb 14, 2019
rn-cli.config.js Update references to the CLI (#23052) Jan 21, 2019
rn-get-polyfills.js Remove global babelHelpers and regenerator (#21283) Sep 26, 2018
runXcodeTests.sh Update copyright headers to yearless format Sep 11, 2018
settings.gradle Prepare Groovy scripts for Kotlin DSL migration (#23355) Feb 9, 2019
yarn.lock Add deprecated-react-native-listview Feb 22, 2019

README.md

React Native · Circle CI Status Build status npm version PRs Welcome

Learn once, write anywhere: Build mobile apps with React.

See the official React Native website for an introduction to React Native.


Requirements

Supported target operating systems are >= Android 4.1 (API 16) and >= iOS 9.0. You may use Windows, macOS, or Linux as your development operating system, though building and running iOS apps is limited to macOS by default (tools like Expo can be used to get around this).

Building your first React Native app

Follow the Getting Started guide. The recommended way to install React Native depends on your project. Here you can find short guides for the most common scenarios:

How React Native works

React Native lets you build mobile apps using JavaScript. It uses the same design as React, letting you compose a rich mobile UI from declarative components.

With React Native, you don't build a "mobile web app", an "HTML5 app", or a "hybrid app". You build a real mobile app that's indistinguishable from an app built using Objective-C, Java, Kotlin, or Swift. React Native uses the same fundamental UI building blocks as regular iOS and Android apps. You just put those building blocks together using JavaScript and React.

React Native lets you build your app faster. Instead of recompiling, you can reload your app instantly. With hot reloading, you can even run new code while retaining your application state.

React Native combines smoothly with components written in Objective-C, Java, Kotlin, or Swift. It's simple to drop down to native code if you need to optimize a few aspects of your application. It's also easy to build part of your app in React Native, and part of your app using native code directly - that's how the Facebook app works.

The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native. You can learn more about our open source roadmap in this blog post: Open Source Roadmap.

Full documentation

The full documentation for React Native can be found on our website. The source for the React Native documentation and website is hosted on a separate repo, https://github.com/facebook/react-native-website. Releases are discussed in the React Native Community, https://github.com/react-native-community/react-native-releases, and larger discussions and proposals are in https://github.com/react-native-community/discussions-and-proposals.

The React Native documentation only discusses the components, APIs, and topics specific to React Native (React on iOS and Android). For further documentation on the React API that is shared between React Native and React DOM, refer to the React documentation.

Join the React Native community

See the CONTRIBUTING file for how to help out.

License

React Native is MIT licensed, as found in the LICENSE file.

React Native documentation is Creative Commons licensed, as found in the LICENSE-docs file.