Skip to content

Instantly share code, notes, and snippets.

@knowbody
Created January 17, 2017 13:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knowbody/53af06e82703f6dd83cd594f569d1911 to your computer and use it in GitHub Desktop.
Save knowbody/53af06e82703f6dd83cd594f569d1911 to your computer and use it in GitHub Desktop.
Exponent SDK12 -> SDK13 upgrade (stuff I found out in my codebase)

package.json changes:

image

image

exp.json keys:

  • change "iconUrl" to "icon"

.flowconfig

[ignore]

# We fork some components by platform.
.*/*[.]android.js

# Ignore templates with `@flow` in header
.*/local-cli/generator.*

# Ignore malformed json
.*/node_modules/y18n/test/.*\.json

# Ignore the website subdir
.*/node_modules/react-native/website/.*

# Ignore BUCK generated dirs
.*/node_modules/react-native/\.buckd/

# Ignore unexpected extra @providesModule
.*/node_modules/commoner/test/source/widget/share.js

# Ignore duplicate module providers
# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
.*/node_modules/react-native/Examples/.*
.*/node_modules/react-static-container/lib/.*
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js
.*/node_modules/jest-runtime/build/__tests__/.*

# We include fbemitter as a dependency so we need to avoid module name clashes
.*/node_modules/fbemitter/node_modules/.*
.*/node_modules/react-native/Libraries/EventEmitter/EventSubscriptionVendor.js
.*/node_modules/react-native/Libraries/EventEmitter/EmitterSubscription.js
.*/node_modules/react-native/Libraries/EventEmitter/EventSubscription.js


.*/node_modules/exponent
.*/node_modules/@exponent/ex-navigation
.*/node_modules/@exponent/vector-icons

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
flow/

[options]
module.system=haste

esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.export_star_as=enable

experimental.strict_type_args=true

munge_underscores=true

module.name_mapper='^exponent$' -> 'emptyObject'
module.name_mapper='^@exponent/ex-navigation$' -> 'emptyObject'
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-9]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-9]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

unsafe.enable_getters_and_setters=true

[version]
^0.36.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment