Skip to content

Commit

Permalink
Refactor react-native-popover-tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashoat committed Nov 9, 2017
1 parent 9bd5afe commit ef167b2
Show file tree
Hide file tree
Showing 8 changed files with 6,430 additions and 236 deletions.
50 changes: 50 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; 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
.*/Libraries/react-native/React.js

; Ignore polyfills
.*/Libraries/polyfills/.*

[include]

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

[options]
emoji=true

module.system=haste

munge_underscores=true

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'

module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FixMe

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

unsafe.enable_getters_and_setters=true

[version]
^0.56.0
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IJ
#
.idea
.gradle
local.properties
*.iml
/android/app/*.keystore
/android/app/*.apk

# node.js
#
node_modules/
npm-debug.log

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class App extends React.Component {
onPress: () => {}
}
]}
// animationType='timming'
// using the default timming animation
// animationType='timing'
// using the default timing animation
/>

<View style={{height:40}}/>
Expand Down Expand Up @@ -155,9 +155,9 @@ class App extends React.Component {
onPress: () => {}
}
]}
// animationType='timming'
// using the default timming animation
timmingConfig={{duration: 1000}}
// animationType='timing'
// using the default timing animation
timingConfig={{duration: 1000}}
opacityChangeDuration={1000} />

<View style={{height: 40}}/>
Expand Down
10 changes: 5 additions & 5 deletions demo/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default class App extends React.Component {
onPress: () => {}
}
]}
// animationType='timming'
// using the default timming animation
// animationType='timing'
// using the default timing animation
/>

<View style={{height:40}}/>
Expand Down Expand Up @@ -136,9 +136,9 @@ export default class App extends React.Component {
onPress: () => {}
}
]}
// animationType='timming'
// using the default timming animation
timmingConfig={{duration: 1000}}
// animationType='timing'
// using the default timing animation
timingConfig={{duration: 1000}}
opacityChangeDuration={1000} />

<View style={{height: 40}}/>
Expand Down
Loading

0 comments on commit ef167b2

Please sign in to comment.