Skip to content

Commit d82a01b

Browse files
committed
Merge branch 'master' of github.com:microsoft/react-native-macos
2 parents 9a25530 + 86af69f commit d82a01b

File tree

209 files changed

+12636
-13245
lines changed

Some content is hidden

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

209 files changed

+12636
-13245
lines changed

.eslintignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# node_modules ignored by default
2-
31
**/main.js
42
**/staticBundle.js
53
bots/node_modules
64
docs/generatedComponentApiDocs.js
75
flow/
86
Libraries/Renderer/*
97
Libraries/vendor/**/*
8+
node_modules/
109
packages/*/node_modules
1110
packages/*/lib
1211
packages/*/lib-commonjs

.flowconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ flow/
3434
[options]
3535
emoji=true
3636

37-
esproposal.optional_chaining=enable
38-
esproposal.nullish_coalescing=enable
39-
4037
exact_by_default=true
4138

4239
module.file_ext=.js
@@ -55,8 +52,6 @@ suppress_type=$FlowFixMeProps
5552
suppress_type=$FlowFixMeState
5653
suppress_type=$FlowFixMeEmpty
5754

58-
well_formed_exports=true
59-
types_first=true
6055
experimental.abstract_locations=true
6156

6257
[lints]

.flowconfig.android

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ flow/
3434
[options]
3535
emoji=true
3636

37-
esproposal.optional_chaining=enable
38-
esproposal.nullish_coalescing=enable
39-
4037
exact_by_default=true
4138

4239
module.file_ext=.js
@@ -58,8 +55,6 @@ suppress_type=$FlowFixMeProps
5855
suppress_type=$FlowFixMeState
5956
suppress_type=$FlowFixMeEmpty
6057

61-
well_formed_exports=true
62-
types_first=true
6358
experimental.abstract_locations=true
6459

6560
[lints]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 82 deletions
This file was deleted.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: 🐛 React Native for macOS Bug Report
2+
description: Report a reproducible bug or regression in React Native for macOS
3+
title: Describe the problem
4+
labels: [bug]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Your issue will be triaged by the team according to [this process](https://github.com/microsoft/react-native-macos/wiki/Triage-Process).
10+
- type: textarea
11+
validations:
12+
required: true
13+
attributes:
14+
label: Environment
15+
description: |
16+
Please fill in all the relevant fields by running these commands in terminal.
17+
1. `react-native -v`:
18+
3. `npm ls react-native-macos`:
19+
4. `node -v`:
20+
5. `npm -v`:
21+
6. `yarn --version`<!-- (if you use Yarn) -->:
22+
7. `xcodebuild -version`:
23+
value: |
24+
react-native -v:
25+
npm ls react-native-macos:
26+
node -v:
27+
npm -v:
28+
yarn --version:
29+
xcodebuild -version:
30+
render: markdown
31+
- type: textarea
32+
validations:
33+
required: true
34+
attributes:
35+
label: Steps to reproduce the bug
36+
description: |
37+
How would you describe your issue to someone who doesn’t know you or your project?
38+
Try to write a sequence of steps that anybody can repeat to see the issue.
39+
Be specific! If the bug cannot be reproduced, your issue may be closed.
40+
placeholder: |
41+
1. Go to '...'
42+
2. Click on '....'
43+
- type: textarea
44+
attributes:
45+
label: Expected Behavior
46+
description: |
47+
How did you expect your project to behave?
48+
It’s fine if you’re not sure your understanding is correct.
49+
Just write down what you thought would happen.
50+
placeholder: |
51+
Write what you thought would happen
52+
- type: textarea
53+
attributes:
54+
label: Actual Behavior
55+
description: |
56+
Did something go wrong?
57+
Is something broken, or not behaving as you expected?
58+
Describe this section in detail, and attach screenshots if possible.
59+
Don't just say "it doesn't work"!
60+
placeholder: |
61+
Write what happened. Add screenshots!
62+
- type: textarea
63+
attributes:
64+
label: Reproducible Demo
65+
description: |
66+
Please share a project that reproduces the issue.
67+
There are three ways to do it:
68+
69+
- See if the issue is already reproducable within the RNTester app.
70+
If the issue pertains to a particular Component or API, try the corresponding
71+
test page in RNTester.
72+
73+
- Create a new app using https://snack.expo.io/ and try to reproduce the issue in it.
74+
This is useful if you roughly know where the problem is, or can’t share the real code.
75+
76+
- Or, copy your app and remove things until you’re left with the minimal reproducible demo.
77+
This is useful for finding the root cause. You may then optionally create a Snack.
78+
79+
This is a good guide to creating bug demos: https://stackoverflow.com/help/mcve
80+
Once you’re done, copy and paste the link to the Snack or a public GitHub repository below:
81+
placeholder: |
82+
Paste the link to an example project and exact instructions to reproduce the issue.
83+
- type: textarea
84+
attributes:
85+
label: Additional context
86+
description: Write any other additional context that may help in root causing the issue

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: React Native for macOS feature request
2+
description: Suggest a new feature or idea
3+
title: Your feature request
4+
labels: [Proposal, enhancement]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
This is a template for new feature or API proposals for React Native for macOS. Use this to submit new API/component requests or behavior updates that are specific to macOS-only.
10+
- For feature requests to React Native, go [here](https://github.com/react-native-community/discussions-and-proposals) instead.
11+
- For feature requests to React Native for Windows (or) Desktop features in general, go [here](https://github.com/microsoft/react-native-windows/issues/new/choose).
12+
13+
Your issue will be triaged by the team according to [this process](https://github.com/microsoft/react-native-macos/wiki/Triage-Process).
14+
- type: textarea
15+
validations:
16+
required: true
17+
attributes:
18+
label: Summary
19+
description: Brief explanation of the new API or change.
20+
- type: textarea
21+
validations:
22+
required: true
23+
attributes:
24+
label: Motivation
25+
description: |
26+
Why are we doing this? What use cases does it support? What is the expected outcome? Why should this be done for macOS?
27+
Please focus on explaining the motivation so that if this proposal is not accepted, the motivation could be used to develop alternative solutions. In other words, enumerate the constraints you are trying to solve without coupling them too closely to the solution you have in mind.
28+
- type: textarea
29+
attributes:
30+
label: Basic Example
31+
description: |
32+
If the proposal involves a new or changed API, include a basic code example. Omit this section if it's not applicable.
33+
- type: textarea
34+
attributes:
35+
label: Open Questions
36+
description: |
37+
Please list any open issues that you think still need to be addressed.
38+
These could include areas you think would benefit from community or the react-native-macos team input

.github/ISSUE_TEMPLATE/module_request.md

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: React Native for macOS Community Module support request
2+
description: Suggest that React Native for macOS support be added to a community module
3+
title: Support react-native-foo
4+
labels: [Extensions, enhancement]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
This Issue template helps us track which modules need to work with React Native for macOS. If you have found a community module that doesn't yet work with React Native for macOS, fill out the Issue fields below!
10+
11+
Your issue will be triaged by the team according to [this process](https://github.com/microsoft/react-native-macos/wiki/Triage-Process).
12+
- type: input
13+
validations:
14+
required: true
15+
attributes:
16+
label: Module
17+
description: Name of the module
18+
placeholder: react-native-foo
19+
- type: input
20+
validations:
21+
required: true
22+
attributes:
23+
label: Module repo url
24+
description: Link to where the module's source code lives
25+
placeholder: https://github.com/react-native-foo/react-native-foo
26+
- type: input
27+
attributes:
28+
label: Target Version
29+
placeholder: "0.63"
30+
- type: input
31+
attributes:
32+
label: Existing issue url
33+
description: If the community module repo already has an issue tracking adding React Native for macOS support, please check this box and link to it.
34+
placeholder: https://github.com/react-native-foo/react-native-foo/issues/1234
35+
- type: input
36+
attributes:
37+
label: Which app/customer is requesting this module?
38+
description: Please describe which app/customer needs this module.
39+
- type: textarea
40+
attributes:
41+
label: In what scenarios will this module be used?
42+
description: Please detail how the app/customer will use the module. Please include screenshots/mockups/wireframes if possible.
43+
- type: textarea
44+
attributes:
45+
label: Essential Features
46+
description: Please enumerate which features of the module are required. For example, you may be using a map module and you only need the 'pinning' functionality and _not_ the turn-by-turn direction functionality.

Libraries/Components/Picker/Picker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ type PickerItemProps = $ReadOnly<{|
3030

3131
/**
3232
* The value to be passed to picker's `onValueChange` callback when
33-
* this item is selected. Can be a string or an integer.
33+
* this item is selected.
3434
*/
35-
value?: ?(number | string),
35+
value?: ?string,
3636

3737
/**
3838
* Color of this item's text.
@@ -62,9 +62,9 @@ type PickerProps = $ReadOnly<{|
6262
style?: ?TextStyleProp,
6363

6464
/**
65-
* Value matching value of one of the items. Can be a string or an integer.
65+
* Value matching value of one of the items.
6666
*/
67-
selectedValue?: ?(number | string),
67+
selectedValue?: ?string,
6868

6969
/**
7070
* Callback for when an item is selected. This is called with the following parameters:

0 commit comments

Comments
 (0)