Skip to content

Commit c7ef092

Browse files
Load HTML string, scrollEnabled, onLoad...
`focus()`, `keyboardDisplayRequiresUserAction`, `hideKeyboardAccessoryView`
0 parents  commit c7ef092

File tree

77 files changed

+17828
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+17828
-0
lines changed

.circleci/config.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
version: 2.1
2+
3+
executors:
4+
default:
5+
docker:
6+
- image: circleci/node:10
7+
working_directory: ~/project
8+
9+
commands:
10+
attach_project:
11+
steps:
12+
- attach_workspace:
13+
at: ~/project
14+
15+
jobs:
16+
install-dependencies:
17+
executor: default
18+
steps:
19+
- checkout
20+
- attach_project
21+
- restore_cache:
22+
keys:
23+
- dependencies-{{ checksum "package.json" }}
24+
- dependencies-
25+
- restore_cache:
26+
keys:
27+
- dependencies-example-{{ checksum "example/package.json" }}
28+
- dependencies-example-
29+
- run:
30+
name: Install dependencies
31+
command: |
32+
yarn install --cwd example --frozen-lockfile
33+
yarn install --frozen-lockfile
34+
- save_cache:
35+
key: dependencies-{{ checksum "package.json" }}
36+
paths: node_modules
37+
- save_cache:
38+
key: dependencies-example-{{ checksum "example/package.json" }}
39+
paths: example/node_modules
40+
- persist_to_workspace:
41+
root: .
42+
paths: .
43+
44+
lint:
45+
executor: default
46+
steps:
47+
- attach_project
48+
- run:
49+
name: Lint files
50+
command: |
51+
yarn lint
52+
53+
typescript:
54+
executor: default
55+
steps:
56+
- attach_project
57+
- run:
58+
name: Typecheck files
59+
command: |
60+
yarn typescript
61+
62+
unit-tests:
63+
executor: default
64+
steps:
65+
- attach_project
66+
- run:
67+
name: Run unit tests
68+
command: |
69+
yarn test --coverage
70+
- store_artifacts:
71+
path: coverage
72+
destination: coverage
73+
74+
build-package:
75+
executor: default
76+
steps:
77+
- attach_project
78+
- run:
79+
name: Build package
80+
command: |
81+
yarn prepare
82+
83+
workflows:
84+
build-and-test:
85+
jobs:
86+
- install-dependencies
87+
- lint:
88+
requires:
89+
- install-dependencies
90+
- typescript:
91+
requires:
92+
- install-dependencies
93+
- unit-tests:
94+
requires:
95+
- install-dependencies
96+
- build-package:
97+
requires:
98+
- install-dependencies

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=crlf
4+
5+
babel.config.js linguist-vendored=true
6+
metro.config.js linguist-vendored=true
7+
example/transformer.js linguist-vendored=true
8+
example/android linguist-vendored=true
9+
example/ios linguist-vendored=true

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# XDE
6+
.expo/
7+
8+
# VSCode
9+
.vscode/
10+
jsconfig.json
11+
12+
# Xcode
13+
#
14+
build/
15+
*.pbxuser
16+
!default.pbxuser
17+
*.mode1v3
18+
!default.mode1v3
19+
*.mode2v3
20+
!default.mode2v3
21+
*.perspectivev3
22+
!default.perspectivev3
23+
xcuserdata
24+
*.xccheckout
25+
*.moved-aside
26+
DerivedData
27+
*.hmap
28+
*.ipa
29+
*.xcuserstate
30+
project.xcworkspace
31+
32+
# Android/IJ
33+
#
34+
.idea
35+
.gradle
36+
local.properties
37+
android.iml
38+
39+
# Cocoapods
40+
#
41+
example/ios/Pods
42+
43+
# node.js
44+
#
45+
node_modules/
46+
npm-debug.log
47+
yarn-debug.log
48+
yarn-error.log
49+
50+
# BUCK
51+
buck-out/
52+
\.buckd/
53+
android/app/libs
54+
android/keystores/debug.keystore
55+
56+
# Expo
57+
.expo/*
58+
59+
# generated by bob
60+
lib/

CONTRIBUTING.md

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# Contributing
2+
3+
We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project.
4+
5+
## Development workflow
6+
7+
To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package:
8+
9+
```sh
10+
yarn bootstrap
11+
```
12+
13+
While developing, you can run the [example app](/example/) to test your changes.
14+
15+
To start the packager:
16+
17+
```sh
18+
yarn example start
19+
```
20+
21+
To run the example app on Android:
22+
23+
```sh
24+
yarn example android
25+
```
26+
27+
To run the example app on iOS:
28+
29+
```sh
30+
yarn example ios
31+
```
32+
33+
Make sure your code passes TypeScript and ESLint. Run the following to verify:
34+
35+
```sh
36+
yarn typescript
37+
yarn lint
38+
```
39+
40+
To fix formatting errors, run the following:
41+
42+
```sh
43+
yarn lint --fix
44+
```
45+
46+
Remember to add tests for your change if possible. Run the unit tests by:
47+
48+
```sh
49+
yarn test
50+
```
51+
52+
To edit the Objective-C files, open `example/ios/WebviewAlternativeExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-webview-alternative`.
53+
54+
To edit the Kotlin files, open `example/android` in Android studio and find the source files at `reactnativewebviewalternative` under `Android`.
55+
56+
### Linting and tests
57+
58+
[ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/)
59+
60+
We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing.
61+
62+
Our pre-commit hooks verify that the linter and tests pass when committing.
63+
64+
### Scripts
65+
66+
The `package.json` file contains various scripts for common tasks:
67+
68+
- `yarn bootstrap`: setup project by installing all dependencies and pods.
69+
- `yarn typescript`: type-check files with TypeScript.
70+
- `yarn lint`: lint files with ESLint.
71+
- `yarn test`: run unit tests with Jest.
72+
- `yarn example start`: start the Metro server for the example app.
73+
- `yarn example android`: run the example app on Android.
74+
- `yarn example ios`: run the example app on iOS.
75+
76+
### Sending a pull request
77+
78+
> **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
79+
80+
When you're sending a pull request:
81+
82+
- Prefer small pull requests focused on one change.
83+
- Verify that linters and tests are passing.
84+
- Review the documentation to make sure it looks good.
85+
- Follow the pull request template when opening a pull request.
86+
- For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
87+
88+
## Code of Conduct
89+
90+
### Our Pledge
91+
92+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
93+
94+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
95+
96+
### Our Standards
97+
98+
Examples of behavior that contributes to a positive environment for our community include:
99+
100+
- Demonstrating empathy and kindness toward other people
101+
- Being respectful of differing opinions, viewpoints, and experiences
102+
- Giving and gracefully accepting constructive feedback
103+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
104+
- Focusing on what is best not just for us as individuals, but for the overall community
105+
106+
Examples of unacceptable behavior include:
107+
108+
- The use of sexualized language or imagery, and sexual attention or
109+
advances of any kind
110+
- Trolling, insulting or derogatory comments, and personal or political attacks
111+
- Public or private harassment
112+
- Publishing others' private information, such as a physical or email
113+
address, without their explicit permission
114+
- Other conduct which could reasonably be considered inappropriate in a
115+
professional setting
116+
117+
### Enforcement Responsibilities
118+
119+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
120+
121+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
122+
123+
### Scope
124+
125+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
126+
127+
### Enforcement
128+
129+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly.
130+
131+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
132+
133+
### Enforcement Guidelines
134+
135+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
136+
137+
#### 1. Correction
138+
139+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
140+
141+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
142+
143+
#### 2. Warning
144+
145+
**Community Impact**: A violation through a single incident or series of actions.
146+
147+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
148+
149+
#### 3. Temporary Ban
150+
151+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
152+
153+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
154+
155+
#### 4. Permanent Ban
156+
157+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
158+
159+
**Consequence**: A permanent ban from any sort of public interaction within the community.
160+
161+
### Attribution
162+
163+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
164+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
165+
166+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
167+
168+
[homepage]: https://www.contributor-covenant.org
169+
170+
For answers to common questions about this code of conduct, see the FAQ at
171+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Codemotion
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)